Forum Moderators: open
Horizontally you can align a div...
right align...
<div style="border: 1px solid black; width: 50%;">
<div style="border: 1px solid black; width: 20%; margin-left: auto; margin-right: 0px;">
TESTING
</div>
</div>
centered...
<div style="border: 1px solid black; width: 50%;">
<div style="border: 1px solid black; width: 20%; margin-left: auto; margin-right: auto;">
TESTING
</div>
</div>
But how about veritcally?
<div style="border: 1px solid black; height: 500px;">
<div style="border: 1px solid black; margin-top: auto; margin-bottom: 0px;">
TESTING
</div>
</div>
Any thoughts? Trying to keep clean, stay away from tables, but the dark side is getting awfully tempting...
Doesn't have to work in NN4, or even IE5... IE6 would be necessary at least! Thanks in advance!
------------------
Mark Johnson
[edited by: Marcia at 11:51 pm (utc) on Sep. 13, 2002]
[edit reason] no sig URLs, please [/edit]
or by itself
<div style="border: 1px solid black; position: absolute; bottom: 0px;">
TESTING
</div>
I'm pretty sure bottom positioning isn’t supported by the W3C but then again neither are table layouts.