Re: Positioning of DIV tag in center of the screen



"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


.



Relevant Pages