Click to See Complete Forum and Search --> : Repeating background images


damon2003
11-06-2003, 04:46 AM
Hi,
I want to know how to insert a background image so that it is only inserted once and does not repeat itself, I tried the following but it does'nt work:

<body bgcolor="#FFFFFF" background="back.jpg" style="background-repeat=no-repeat;background-attachment=fixed">


thanks

gil davis
11-06-2003, 06:59 AM
The proper CSS syntax separates properties and values with a ":". You used an "=". Replace the "=" with ":".
<body bgcolor="#FFFFFF" background="back.jpg" style="background-repeat: no-repeat;background-attachment: fixed">
If that does not work, then use:
<body style="background: url('back.jpg') #FFFFFF; background-repeat: no-repeat; background-attachment: fixed">

Aronya1
11-06-2003, 05:02 PM
I thought the correct phrasing was 'background-repeat: no'

Not correct?

gil davis
11-06-2003, 05:18 PM
http://www.w3.org/TR/CSS1#background-repeat

Value: repeat | repeat-x | repeat-y | no-repeat
Initial: repeat

Aronya1
11-06-2003, 08:26 PM
I tip my hat to you, sir.