Re: Positioning of DIV tag in center of the screen



"123Jim" <jnkjnjnini@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ihn5hv$rh7$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<cut>


You missed the edit I added to your container:

margin-left: auto;
margin-right: auto;


So, now it looks like:

..container {
background-image: url(main.jpg);
position: relative;
height: 525px;
width: 980px;
margin-left: auto;
margin-right: auto;
centered: horizontally;
centered: vertically;
}

And it centers horizontally allright! Thanks.
But now vertically?

Fokke


.



Relevant Pages