[thelist] VERY basic CSS question

Carl Meyer cjmeyer at npcc.net
Tue May 18 12:05:21 CDT 2004


hi Rob,

On Tue, 18 May 2004, Rob Smith wrote:

> div.container {
> 	background: #fff url(mainback.jpg) no-repeat ;
[snip]
> 	align: center;
> 	}
> 
> For the life of me I cannot get the "container"'s background image to be
> centered on the page:

AFAIK "align" is not a CSS property.  Maybe you mean "text-align: center",
but that has no effect on the background.  You want "background-position:
top center", or in shorthand:

background: #fff url(mainback.jpg) no-repeat top center;

You might want to find an online CSS reference.  I use the ones at
http://www.zvon.org/xxl

Carl



More information about the thelist mailing list