Click to See Complete Forum and Search --> : Firefox compatability issue (- works in IE...)
javascriptlover
11-30-2008, 05:22 PM
Hi all,
My CSS works fine with Windows Internet Explorer, and passes w3c validation, but Firefox simply does not register the .css file and loads my page as if the CSS does not exist. Incidentally, when the code is imbedded in the xhtml through <style> tags in the header, it works fine - and I have triple checked that the <link> tags link to the correct CSS file.
So I've saved the following very simple code in the .css file:
body{font: 70% sans-serif}
div#image{float:right}
div#introduction{margin-top:28px}
div#maininformation{clear:both;margin-left:150px;margin-right:150px}
Anybody have any idea? I've been wrestling with this for some time.
Thanks,
javascriptlover
aj_nsc
11-30-2008, 05:58 PM
Syntax is fine, do you have a link or, if you don't, just attach a text file to your next post with the full XHTML page.
drhowarddrfine
11-30-2008, 08:57 PM
This is an issue with your server side but without a link we can only guess.
javascriptlover
12-01-2008, 03:03 PM
Hi there, so at the moment the XHTML is the following. Thanks for the help...
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="keywords" content="css first attempt" />
<meta http-equiv="description" content="first attempt at css" />
<meta http-equiv="author" content="del monte" />
<link rel="stylesheet" media="screen" type="text/css" href="C:\Users\delmonte\Documents\website\style.css" title="Default" />
<title>First CSS attempt</title>
</head>
<body>
<div id="image">
<p><strong><img src="picture.gif" alt="picture"></strong></p>
</div>
<div id="introduction">
<h1>First attempt at CSS</h1>
<h2>
This is my first attempt at css. As you can see it's going pretty awfully, but then isn't that always the way with these 'puters.
</h2>
</div>
</div>
<div id="maininformation">
<p><strong>3) More stuff here.</strong> very text make long column make filler fill make column column silly filler text silly column fill silly fill column text filler make text silly filler make filler very silly make text very very text make long filler very make column make silly column fill silly column long make silly filler column filler silly long long column fill silly column very </p>
</div>
</body>
</html>
<link rel="stylesheet" media="screen" type="text/css" href="file://C:/Users/delmonte/Documents/website/style.css" title="Default" />
C: is not a registered protocol in firefox.
javascriptlover
12-01-2008, 05:29 PM
I totally love you. It works. Thankyou so much.
(... 3 more days flushed away for the sake of a few ascii characters...)
drhowarddrfine
12-01-2008, 11:01 PM
C: is not a registered protocol in firefox.
Or any browser for that matter.