Click to See Complete Forum and Search --> : non-repeating background error


Melissa N
05-25-2005, 12:20 PM
Hi,

I'm a bit frustrated with my failed efforts to get a non-repeating background image. I've tried several variations non of which have worked - my previews still show a repeating background.

Here's my code as it stands now - can anyone please tell me what is wrong with my code below?? Is there something I'm missing?

...
<style>
body background{ background: url("images/background.jpg") no-repeat;}
</style>

</head>

<body background="images/background.jpg">
...

Any help would be really great!

coothead
05-25-2005, 12:44 PM
Hi there Melissa N,

you are suffering from a superfluity of backgrounds. :D

This is all that you require...
<style type="text/css">
body {
background: url(images/background.jpg) no-repeat;
}
</style>

coothead

Melissa N
05-25-2005, 01:46 PM
many sheepish thank you's .... :)