Stupid css problem!

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've starting learning a little about css. I'm trying to put a background on
a page  I've tried using a css file, calling via
<link rel="stylesheet" href="sitewide.css" type="text/css">
sitewide.css which contains a line
body {background-image: url(zebra1.jpg); background: white; color : black;}
or via the html file itself.
<HEAD> section
<STYLE type="text/css">
<!-- body {background-image: url(zebra1.jpg); background: white; color :
black;} -->

However I'm not getting the image for the background. Anyone have ideas what
I'm missing ? The image is in the same directory as the html and css file.
I've tried IE6 as a browser and a coffeecup editor but both behave the same.


Re: Stupid css problem! says...
Quoted text here. Click to load it
'background' is a short cut that sets all of the various options at
once. Anything you leave out is set to the default - so your
'background' is overriding your background-image.

Either use 'background-image: url(zebra1.jpg); background-color:
white;' or (better) 'background: white url(zebra1.jpg);'


Re: Stupid css problem!

Tony Benham wrote:

Quoted text here. Click to load it

I would reffere to the url of the directory as well, and checked for both
spelling and capital letters.

I am doing the same as you in the stylesheet for all error pages on my site,
take a look at for an example


Site Timeline