[thelist] Centering a div with CSS

Means, Eric D eric.d.means at boeing.com
Thu Jun 13 18:35:09 CDT 2002


>  -----Original Message-----
> From: 	Eduardo Dominguez [mailto:lalo at teligens.com]
> Sent:	Thursday, June 13, 2002 7:41 PM
> To:	thelist at lists.evolt.org
> Subject:	Re: [thelist] Centering a div with CSS
>
> Burhan,
>
>  tried this:
>
> .test{
>  width: 780px;
>  left: auto;
>  right: auto;
> }
>
> but the div still appears on the left side.

How about
.test {
  width: 780px;
  margin-left: auto;
  margin-right: auto;
}



More information about the thelist mailing list