Jump to content

[SOLVED] How Do I Use PHP include() to Include a CSS Stylesheet? Or Can I?


dshafer

Recommended Posts

I have a situation where it would be great if I could have a line of PHP in the HEAD of an HTML document that looks like this:

 

<?

include "../css/mainstyle.css";

?>

 

But when I use that construct, the contents of the CSS file display. Not unexpected, but I wonder if there's any way to do what I want.

 

Thanks.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.