Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: not2easy

Message Too Old, No Replies

Div inside a div bottom allignment

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

New User

10+ Year Member

joined:Oct 16, 2005
posts: 35
votes: 0


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)

Senior Member

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

joined:Aug 7, 2003
posts:4783
votes: 0


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.