Re: Positioning of DIV tag in center of the screen
- From: "Fokke Nauta" <fnautaNO@xxxxxxxxxxxxx>
- Date: Wed, 26 Jan 2011 12:51:55 +0100
"Beauregard T. Shagnasty" <a.nony.mous@xxxxxxxxxxxxxxx> wrote in message
news:ihnctj$c7g$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Fokke Nauta wrote:
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; <--------- remove these two lines
centered: vertically; <--------- "
}
There is no property of: centered
(not even in IE, richard)
And it centers horizontally allright! Thanks.
But now vertically?
Try margin: auto; instead of the separate left and right.
Well, margin: auto; works OK. Left the "centered" properties out.
But it still is in the top of the screen. Not a problem, though.
But it's already at the top of the page, isn't it? This is a container
for "content" I guess.
Yes, indeed
Why do you want such a large darkish image in the
first place? And as a background, which indicates there is going to be a
foreground. What? White text?
There are links and a text window. White font colour, indeed.
Have a look at my "old" website, www.fokkenauta.nl.
Thanks,
Fokke
.
- 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
- Re: Positioning of DIV tag in center of the screen
- From: Fokke Nauta
- Re: Positioning of DIV tag in center of the screen
- From: Beauregard T. Shagnasty
- Positioning of DIV tag in center of the screen
- Prev by Date: Re: Positioning of DIV tag in center of the screen
- 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
|