Re: Positioning of DIV tag in center of the screen
- From: "Fokke Nauta" <fnautaNO@xxxxxxxxxxxxx>
- Date: Tue, 25 Jan 2011 20:49:43 +0100
"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
.
- Follow-Ups:
- Re: Positioning of DIV tag in center of the screen
- From: Beauregard T. Shagnasty
- Re: Positioning of DIV tag in center of the screen
- References:
- Positioning of DIV tag in center of the screen
- From: Fokke Nauta
- Re: Positioning of DIV tag in center of the screen
- From: 123Jim
- Re: Positioning of DIV tag in center of the screen
- From: Fokke Nauta
- Re: Positioning of DIV tag in center of the screen
- From: 123Jim
- Positioning of DIV tag in center of the screen
- Prev by Date: Re: <form> re-direct by radio button choice
- Next by Date: Re: Positioning of DIV tag in center of the screen
- Previous by thread: Re: Positioning of DIV tag in center of the screen
- Next by thread: Re: Positioning of DIV tag in center of the screen
- Index(es):
Relevant Pages
|