[Nfb-web] SSI & CSS
Rob
kyrath at cox.net
Wed Sep 6 09:23:28 CDT 2006
Hi all,
I was experimenting with server-side-includes for sections of markup that repeat on each page. (e.g. header, footer, sidebar, etc.)
The includes themselves worked as expected. The interesting and unfortunately negative result was in the application of CSS rules. While the markup was correctly inserted into the served page, none of that markup had any of the CSS rules applied to it. So, if you were to view the source on the page, you would see the correct layout of html, including CSS in the header section. However, the only html that had CSS rules applied to it was that markup which was part of the original document. (i.e. the document that has the CSS rules in the header section.
In any event, does anyone have any ideas or techniques for inserting repetitive markup into a series of pages? I know that I can do this with CGI scripts, but I really don't want to run the entire site from CGI scripts.
Thanks,
-- Rob
-------------- next part --------------
Hi all,
I was experimenting with server-side-includes for sections of markup that repeat on each page. (e.g. header, footer, sidebar, etc.)
The includes themselves worked as expected. The interesting and unfortunately negative result was in the application of CSS rules. While the markup was correctly inserted into the served page, none of that markup had any of the CSS rules applied to it. So, if you were to view the source on the page, you would see the correct layout of html, including CSS in the header section. However, the only html that had CSS rules applied to it was that markup which was part of the original document. (i.e. the document that has the CSS rules in the header section.
In any event, does anyone have any ideas or techniques for inserting repetitive markup into a series of pages? I know that I can do this with CGI scripts, but I really don't want to run the entire site from CGI scripts.
Thanks,
-- Rob
More information about the Nfb-web
mailing list