View Full Version : Is it possible to make a background not repeat in HTML?
nickbarresi
01-07-2003, 09:51 AM
Is this possible? Any cross browser compatibility issues?
TIA...
MCookie
01-07-2003, 10:29 AM
It's only possible with CSS: background-repeat: no-repeat;
http://www.devguru.com/Technologies/css/quickref/css_backgroundrepeat.html
Are you referring to keeping the background stationary?
I use the body tag
<body bgproperties=fixed background=whatever.gif .....
Tails
01-09-2003, 08: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).
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.