Ok guys, here's the deal. I am using css for my website, everything is super duper, except for ONE page. It's the login page, I have used a table for the login box so as to position everything properly. What I want to know is, (btw the table is in a div) how do I vertically align my table to the center of the web page using css, is there a way at all? Otherwise I'm just going to have to use padding to get it away from the top a bit.
Slade
66
Practically a Master Poster
Recommended Answers
Jump to PostAs far as I know, it's industry standard to set a padding or a margin. Can't seem to find a way to do it :-/ Check out http://www.stunicholls.myby.co.uk/ie/valign.html though.
Jump to PostMy only problem with this technique has always been with the text being centered as well. I don't always want the text to be centered as well.
<-- Stumped
Jump to PostYes that's right.
Basically we are moving the control point of the box to the center by telling it to use margins that are negative and half the width and height of the box. This means that when we position it 50% from left and top we are moving the …
All 10 Replies
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
gooseneck
0
Light Poster
Slade
66
Practically a Master Poster
DaveSW
15
Master Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
gooseneck
0
Light Poster
Slade
66
Practically a Master Poster
DaveSW
15
Master Poster
Slade
commented:
thanks buddy
+3
Tekmaven
258
Software Architect
Team Colleague
DaveSW
15
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.