Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

div inside another div: can I display it in the bottom-left corner?

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
hallo,

I have a div which height can change. Inside this div I would like to place another div that would always stay at the bottom-left corner, even if the parent div height would change. Do you know how to do it?

thanks
 
In order to keep a div at the bottom at all times, the only way to do it (without javascript calculating the bottom) is to use relative positioning on the parent element and absolute positioning on the child element. I don't know if using absolute positioning for such a thing is always best though.

However, if you think about it ... if you have an element with automatic height (as much as the content within it), the last element of the content will always be at the bottom left corner of the parent element. So basically the functionality you're after is the default behaviour of elements.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top