PDA

View Full Version : Stop background images from repeating


jasmine
05-03-2006, 04:59 PM
Dreamweaver seems to automatically repeat the background image I have. How do I stop this? I've tried the help files and such to jog my memory but it's not going too well...Help please?

bkendall
05-03-2006, 05:07 PM
well if you are using css to do your BG all you need to to is:

background-repeat: no-repeat;

domedia
05-03-2006, 05:09 PM
CSS code if your comfertable with that:
.classname {
background-image: url(bg.gif);
background-repeat: no-repeat;
}

The same options are available in the CSS panel for your tag.

jasmine
05-03-2006, 05:16 PM
I have a hard time with CSS too :P I haven't touched DW in forever so...
would i just edit the background tag then?

domedia
05-03-2006, 05:19 PM
nope, there is no background tag :)
You would have to apply a class (or ID) to your element and add the background image and repeat from the CSS panel.
You cannot stop backgrounds from repeating if you apply background image through the background attribute in HTML :-/

jasmine
05-03-2006, 05:22 PM
Durh....I knew that! :P

Your advice worked! it's starting to come back to me now! thanks for your help! :)