I am trying to port over a word press stylesheet for use on part of my site. The page under discusssion (index.php)will consist of includes from four other pages (header.php, sidelinks.php,main.php, and footer.php). I tried linking to the style.css in the header page between the <style></style> using several variations of: I tried this with double quotes and without the /. I also tried absolute reference as in www.mydomain.xxx/dir/style.css. Nothing worked until I copied the actual style.css to the space between the <style> </style> section of the header.php file. Then it worked like it should have from the start. Did I mess up the syntax?
The <link href='style.css' type='text/css' rel='stylesheet' /> goes between the <head></head> tags, but not inside <style></style> tags.
Do as exam says just put it in thhead not inside the styles tags. You can also import them like this though. <style type="text/css" media="screen"> @import url(scripts/css/shared.css); @import url(scripts/css/special-offers.css); </style> HTML:
My understanding was that import was compatible with fewer browsers that the link rel="stylesheet"... syntax.
I never said it was a better way did I? Infact if you read what I said I recommended what you had already said to do. All I said is that it was another way of doing it.