.css with Mozilla woes...
I decided to start learing CSS as it was becoming a real pain to try to change the layout / colour scheme ever increasing count of web pages. I started with a fairly basic css file that had the font size and background colour etc etc, and tried this on my index.html.
It seemed to work fine, so I changed all my html files to use my new 'style.css' file. I was really pleased with the way I could change the background colour etc of every web page now by just changing one file. It really did work perfectly in IE and Opera.
Then, just as I was saying to myself "this is going much more smoothly than I had anticipated', and feeling generall smug about things, I tried it on Mozilla...............
Cue about 4 hours of messing around to no avail... Eventually, I took out all the tables, and fancy font declarations etc etc in my code, until eventually I had my code pared down to the following:-
(the following is saved as 'style.css'
in the same folder as my index.html file)
---------------------------------------
<style type="text/css">
<!--
BODY {background-color: #404060;}
-->
</style>
---------------------------------------
(The following is saved as'index.html')
---------------------------------------
<html>
<head>
<title></title>
<link rel="StyleSheet" href="style.css" type="text/css">
</head>
<body>
This is a test......
</body>
</html>
---------------------------------------
And STILL it will not work for me in Mozilla (or Firefox) - both are the latest versions.
I have to admit that I am starting to get dissilusioned with the whole css thing!
NB the css file is definitely being read by mozilla because when I change the font properties in the css file, it picks these up OK....
Is there somehting really stupid that I am missing?
|