...

View Full Version : Is it possible to make a background not repeat in HTML?



nickbarresi
01-07-2003, 10:51 AM
Is this possible? Any cross browser compatibility issues?

TIA...

MCookie
01-07-2003, 11:29 AM
It's only possible with CSS: background-repeat: no-repeat;

http://www.devguru.com/Technologies/css/quickref/css_backgroundrepeat.html

eric
01-09-2003, 07:49 AM
Are you referring to keeping the background stationary?

I use the body tag
<body bgproperties=fixed background=whatever.gif .....

Tails
01-09-2003, 09:28 PM
BODY{background-position:center;background-repeat=no-repeat;background-color:#c0c0c0}

In the above block of STYLE, we have a centered non-repeating background that is always in the center of the window (even on resize). Also, the background color covers the area where the picture doesn't repeat (it should be a color that can match the picture in some way).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum