Aligning multiple divs to bottom of parent div

animemike

New Member
I have multiple child divs within a parent div. Using CSS, is it possible to vertically align all of the child divs to the bottom of the parent container so that something like the following would be displayed:
rXQdG.png
The height of the child divs will be unknown (dynamic).\[code\]<p>Top of page</p><div id="container"><div class="message">Message 4</div><div class="message">Message 3</div><div class="message">Message 2</div><div class="message">Message 1</div></div><p>Bottom of page</p>\[/code\]style below:\[code\]#container { height: 500px; }\[/code\]Problem demo.
 
Back
Top