| 9:28 pm on Mar 18, 2003 (gmt 0)|
It should work...
Just remember that ID's can only be used for one element on the page since it's a unique identifier. If you need to style more than one element, use a class instead.
Other than that, it should work just fine.
| 9:40 pm on Mar 18, 2003 (gmt 0)|
Also, make sure that you have declared type="text/css"...
| 9:57 pm on Mar 18, 2003 (gmt 0)|
Thanks for that, but each id is unique and I've tried using both link and import (with absolute and relative uri's) and each one separately, but still no joy.
<link href="http://localhost/dunlopandlugton/dunlopandlugton.css" rel="stylesheet" type="text/css" />
| 10:01 pm on Mar 18, 2003 (gmt 0)|
Try dropping the quotes from your @import Jim.
| 10:04 pm on Mar 18, 2003 (gmt 0)|
No, the quotes aren't the problem .. it's the comment <!-- -->
I assume you're working on an XHTML page. According to the documentation a standards compliant browser is allowed to ignore anything inside of comments. Hence, never use comments as a method of "hiding from older browsers".
Remove the comments and it will work just fine ;)
| 10:05 pm on Mar 18, 2003 (gmt 0)|
I never use them at all. I suspect Doc's right, he usually is!
As an aside, what's the definitive on those quotes?
| 10:09 pm on Mar 18, 2003 (gmt 0)|
No quotes inside of parenthesis
| 10:29 pm on Mar 18, 2003 (gmt 0)|
Yep, that's how I understood it. I just thought it might be either as you didn't mention it being correct/incorrect.
| 10:40 pm on Mar 18, 2003 (gmt 0)|
Well, I think the user agents are still supposed to render it correctly, and that it shouldn't matter. That's why I didn't mention it. But I can't find any information on the subject (and I'm trying to find a reference to the whole <!-- ->> thing too)
| 10:43 pm on Mar 18, 2003 (gmt 0)|
Aah! Found it! ;)
XHTML 1.0 [w3.org]
|C.4. Embedded Style Sheets and Scripts |
Use external style sheets if your style sheet uses < or & or ]]> or --. Use external scripts if your script uses < or & or ]]> or --. Note that XML parsers are permitted to silently remove the contents of comments. Therefore, the historical practice of "hiding" scripts and style sheets within "comments" to make the documents backward compatible is likely to not work as expected in XML-based user agents.
| 10:45 pm on Mar 18, 2003 (gmt 0)|
Personally I like the way they call it historical practice ;)
Like you said, Nick... you never use comments, and there really is no need for them
| 8:19 am on Mar 19, 2003 (gmt 0)|
That was the problem. Got my nice layout back (for now anyway).