View Full Version : Vertical Centering with CSS


Jewell
11-28-2003, 03:53 AM
I'm attempting to vertically center the content on my div boxes. I can't seem to figure out how and I'm lossing my mind.

Here's the page.

http://www.geocities.com/endless_calm/bla.htm

MaGiCSuN
11-28-2003, 03:47 PM
i can't really figure a good way out but somehow this will do a bit the way you want it:

#menu {
position: absolute;
left: 5px;
padding: 0px;
width: 150px;
margin-top: 10%;
margin-bottom: 10%;
}

the bold stuff is what i have added. also this part in your stylesheet hasn't got a name in front of it, so it's not working for any part on your website at all:

{ margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}


Love,
Mirna

Jewell
11-30-2003, 03:39 PM
Thanks but I have decided to go with tables insead.