Log in

View Full Version : Linking to CSS within PHP


frugalfoto
01-12-2009, 07:07 PM
I would like to have the same header image/navigation from the rest of my site included at the top of my forums page. I know I can just add HTML into the php file, but how do I get it link to my stylesheet?

Typically I would just add this in the <head> section of my HTML code:

<link href="default.css" rel="stylesheet" type="text/css" />

But it is not working now that I've added that chunk of HTML to my php file. All of the text and links that are stated in my HTML are showing up, but it's missing the CSS formatting.

Lynne
01-12-2009, 07:33 PM
Hard to tell with no more information or a link to the page. Is the link to default.css correct where you are trying to use it? Is the code for the css being output correctly from your php page?

Dismounted
01-13-2009, 04:32 AM
If this is inside vBulletin, can't you add it to the headinclude template?