Forum Moderators: not2easy
Here's my header
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Home - example.</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="machel.css" media="screen">
<link rel="stylesheet" href="menuv.css" media="screen">
<!--[if lt IE 7]>
<style type="text/css" media="screen">
body{behavior:url(csshover.htc);}
</style>
<![endif]-->
</head>
If the css is on the page it works in firefox.
My page validated okay.
[edited by: swa66 at 9:13 pm (utc) on Mar. 24, 2009]
[edit reason] removed specifics [/edit]
Try single tag closing these tags like this:<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="machel.css" media="screen" />
<link rel="stylesheet" href="menuv.css" media="screen" />
That's ridiculous. He's using an HTML 4.01 doctype. Only flavours of xml (such as xhtml) require self-closing tags. Besides that, forgetting to close a link or meta tag does not cause any problems like this that I've ever heard of.
ngc628, given the symptoms you describe it's difficult to figure out what might be wrong. I'd suggest that the paths in the link elements might be wrong if you hadn't said that the styles work in IE. It might be worth your adding the Web Developer Toolbar [addons.mozilla.org] to Firefox and using the CSS > View CSS option to see if any of your stylesheets are not being found. You can also figure out if your stylesheets are being found and applied using Firebug [addons.mozilla.org].
-- b
- Is your server configured to serve the css as text/css ?
Are you sure the page reacts to nothing in the linked CSS ?
Remember that when it reacts differently that in 99.9% of the cases it's the legacy IE versions that are wrong, not Firefox. One of the main reasonsto never develop a site in IE.