Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: not2easy
I finally got my page looking good in IE, NN and Opera, so I took out all the internal CSS and made a stylesheet. Now, Opera 7 doesn't display the selector styles from the external stylesheet.
Stuff like h1, h2, p and img work fine, but things like #header, #footer don't work at all.
Am I missing something from Opera's preferences?
<link href="http://localhost/dunlopandlugton/dunlopandlugton.css" rel="stylesheet" type="text/css" />
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 ;)
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.