CSS in SSI? Not a bad pun...

ValleyPages's picture

He has: 46 posts

Joined: Nov 2001

Can a CSS tag be used with in an SSI include?

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Absolutely. I can't think of any reason why not... unless I'm misunderstanding your question.

How an SSI works is that the include is just literally included into the HTML file. It just puts the two files together, so if you view source you'll just see HTML and CSS and javascript and whatever else - you won't see any sign of SSI. There's really no difference between the code that goes into an SSI and regular code.

Brian Farkas's picture

They have: 1,015 posts

Joined: Apr 1999

I just wanted to add that the only thing you can NOT do with SSI is to add another SSI call in the document that is being called. In other words, if I am including a page called page2.html on a page called page1.html, a SSI include call for page3.html can not be in page2.html. That make sense? Laughing out loud

ValleyPages's picture

He has: 46 posts

Joined: Nov 2001

Thanks guys!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.