tags:

views:

76

answers:

2

Suppose I have 2 DIVs , one on top of each other.

How do I align the text of the top one to the TOP , and align the text of the bottom one to Bottom?

+1  A: 

True -- vertical-align only works if you set the display of each div to table-cell

div#top, div#bottom { display: table-cell }
div#top { vertical-align: top }
div#bottom { vertical-align: bottom }
Darren
note that table-cell isn't support in IE7 and under :( (http://www.quirksmode.org/css/display.html for more info)
Owen
What about Webkit, in browsers?
TIMEX