Forum Moderators: phranque
With the style sheet for the screen do you use:
media="screen" or media="all"
I used to use media="all" for the screen style sheet but I started getting problems similar to what you've had. After I switched to media="screen" the problem went away
The example I use for the screen stylesheet (in xhtml) is:
<link href="css/filename.css" rel="stylesheet" type="text/css" media="screen" />
Have fun
pamount
That might have something to do with your problem. Have you validated your css at [jigsaw.w3.org...]
I've just found in my experience that it's best to explicitly declare the media attribute as I've shown in my example.
I hope that helps
pamount
Have you validated your css
it's best to explicitly declare the media attribute
I don't know if not validating your css will necessarily cause it to fail to load but it's a good thing to do anyway, as well as validating your html.
I just know that before I explicitly declared the media attribute I was having trouble viewing the web site I'd just made. I was looking at it on my computer at work, which is connected to the rest of the network, at my work, over a microwave link. After I explicitly declared the media attribute for the screen stylesheet the problem went away.
If you want to look at the web site I'm talking about its at: [dccc.org.au...] and you can look at the markup behind it. I used the underscore hack in the css so that's why it shows a couple of errors when validating the css.
pamount
I should have mentioned you can read about the "underscore hack" at [allinthehead.com...]
pamount