2 replies [Last post]
AndyZ
Offline
newbie
Last seen: 13 years 1 week ago
Joined: 2005-09-30
Posts: 4
Points: 0

I'm looking for a way to push the content of a DIV to the bottom of a DIV it's nested in. I don't want to go old school and use a TABLE with TD VALIGN="BOTTOM". The tricky part is the ammount of text can change from instance to instance, so creating a MARGIN-TOP value in the style isn't really an option (I think).
Suggestions? Thanks.

put me on the bottom

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 5 years 8 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Give the parent position:

Give the parent position: relative and then the child position: absolute.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

AndyZ
Offline
newbie
Last seen: 13 years 1 week ago
Joined: 2005-09-30
Posts: 4
Points: 0

Brilliant

thank you!