acunon
06-04-2007, 07:34 PM
I am trying to create a style for a Div tag the style will have al the basics (do not need help with that). The part I am having trouble with is, I need the style (for a div) to have what amounts to a vertical align middle inside an outter div with a height 20%
I am putting together an admin login page there is a top (height 20%) with a couple lines of text, a middle (height 60%) with a login box, and a bottom (height 20%) with a company logo/link. I need the text, login box and, logo/link (three items) to be centered verticaly with in there respective areas no matter the size of window.
The hard part is that I need the three items to use one style each to acomplish this.
so the code should look somthing like this
<body>
<div class="loginHeader">text line 1<br />text line 2</div>
<div class="loginMain">
<div class="loginBox">login box</div>
</div>
<div class="loginFooter">
<div class="vertAlign"><a href="http://www.default.com" target="_blank"><img src="Images/Logos/default.gif" alt="Default" width="127" height="39" style="border: 0px; position: relative;" /></a></div>
</div>
</body>
I am putting together an admin login page there is a top (height 20%) with a couple lines of text, a middle (height 60%) with a login box, and a bottom (height 20%) with a company logo/link. I need the text, login box and, logo/link (three items) to be centered verticaly with in there respective areas no matter the size of window.
The hard part is that I need the three items to use one style each to acomplish this.
so the code should look somthing like this
<body>
<div class="loginHeader">text line 1<br />text line 2</div>
<div class="loginMain">
<div class="loginBox">login box</div>
</div>
<div class="loginFooter">
<div class="vertAlign"><a href="http://www.default.com" target="_blank"><img src="Images/Logos/default.gif" alt="Default" width="127" height="39" style="border: 0px; position: relative;" /></a></div>
</div>
</body>