Welcome to WebmasterWorld Guest from 54.198.87.238

Forum Moderators: not2easy

Message Too Old, No Replies

Div inside a div bottom allignment

     
11:18 pm on Apr 9, 2009 (gmt 0)

5+ Year Member



I have a container div set to 100 by 100 pixels, inside of this div is another div (that has texts) that i wanted it to be at the bottom of the container div. How can i do that?

here is the screenshot.

<snip>

i want the div that has "playing arcade amazon" to be at the bottom of the square div.

thanks in advance!

[edited by: swa66 at 12:21 am (utc) on April 10, 2009]
[edit reason] NO personal URLs please see ToS and forum charter [/edit]

12:24 am on Apr 10, 2009 (gmt 0)

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Give the outer div
position:relative
in order to make it gain "position".
Give the inner element (why a div? if it's text, why not use a <p> ?)
position: absolute; bottom: 0;
To have it position relative to its parent that has position and align bottoms.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month