Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: not2easy
I have three DIV "columns" (dotted borders), within an enclosing DIV (solid border). I'd like to vertically align the dotted DIVs within this enclosing DIV. Is there any way to do it without using absolute positioning?
Also, as an aside, should I be using <br> to vertically "stack" my images, or is there a more CSS-kosher way?
[edited by: Nick_W at 10:05 pm (utc) on Mar. 27, 2003]
[edit reason] no urls please [/edit]
You can use display:block to force the images to stack. As far as vertical alignment... well, that's tricky since it has to be in reference to something else. Two divs on top of each other, each positioned using vertical-align... doesn't work. You can always play with margin/padding though. I'd recommend absolute/relative positioning though, since that's what you're doing anyway, right?