Gossamer Forum
Home : General : Internet Technologies :

CSS and SSI

Quote Reply
CSS and SSI
Hi Forum,

When you use SSI to include an HTML page all the html, head and body tags are removed from the included HTML page. Therefore how do you format the page to be included using an external css style sheet, because the link for the style sheet goes in the head section of the HTML page to be included - which has now been removed. Is there anyway to use an external css style sheet with SSI? In addition I need to use and external css file, and don't wish to include style tags within my HTML pages for each element or class.

Any solution for this would be greatly appreciated. If it works in IE and Netscape that would be ideal.

Thank you for your help.

Best wishes

Travalian
Quote Reply
Re: [travalian] CSS and SSI In reply to
All you have to do is use the correct relative path to your css file within the link rel codes.

Like:

<link rel="stylesheet" type="text/css" title="Your Cascading Style Sheet Name" href="/path/to/yourcascadingstylesheet.css">

========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] CSS and SSI In reply to
Thank you.

I found that the included file takes on the style sheet of the master document - all is working fine now :)

Trav