homepage Welcome to WebmasterWorld Guest from 174.129.76.87
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Div inside a div bottom allignment
hp_solomon

5+ Year Member



 
Msg#: 3889442 posted 11:18 pm on Apr 9, 2009 (gmt 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]

 

swa66

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



 
Msg#: 3889442 posted 12:24 am on Apr 10, 2009 (gmt 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.
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved