W3C home > Mailing lists > Public > www-style@w3.org > January 1999

Center background with CSS

From: Richard Hedlind <rjhedlin@brain.uccs.edu>
Date: Thu, 14 Jan 1999 15:34:13 -0700
Message-ID: <005f01be4011$df7067a0$0300a8c0@garbage>
To: "WWW-Style" <www-style@w3.org>
Hi,

How do I center the background in Netscape with style sheets?

this is the code I use now, but it works only in IE, not Netscape:

.main
{
 background: white url(images/hbar30l.gif) center;
 background-repeat: no-repeat;
} 

Richard ( rjhedlin@mail.uccs.edu )
Received on Thursday, 14 January 1999 18:02:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:58 GMT