Fleetwood Mac macrumors 65816 Original poster Apr 27, 2006 1,265 0 Canada Apr 6, 2008 #1 How can I align a nested div to the bottom of another?
thejadedmonkey macrumors G3 May 28, 2005 9,361 3,838 Pennsylvania Apr 6, 2008 #2 There's (sadly) no valign for CSS. You can use positioning; ie something like Code: position:relative; bottom:0px; or give in some insane margin/padding-top value. Also, a quick google search reminded me, you can also do position:relative;top:50%; to put the top of the div box in the middle of its container.
There's (sadly) no valign for CSS. You can use positioning; ie something like Code: position:relative; bottom:0px; or give in some insane margin/padding-top value. Also, a quick google search reminded me, you can also do position:relative;top:50%; to put the top of the div box in the middle of its container.
Fleetwood Mac macrumors 65816 Original poster Apr 27, 2006 1,265 0 Canada Apr 6, 2008 #3 thejadedmonkey said: Also, a quick google search reminded me, you can also do position:relative;top:50%; to put the top of the div box in the middle of its container. Click to expand... Thanks.. It looks like this is good as its going to get. Any other method lead to unresolvable issues with the box model problem in IE. Its been driving me crazy all morning now.
thejadedmonkey said: Also, a quick google search reminded me, you can also do position:relative;top:50%; to put the top of the div box in the middle of its container. Click to expand... Thanks.. It looks like this is good as its going to get. Any other method lead to unresolvable issues with the box model problem in IE. Its been driving me crazy all morning now.
angelwatt Moderator emeritus Aug 16, 2005 7,852 9 USA Apr 6, 2008 #4 thejadedmonkey said: There's (sadly) no valign for CSS. Click to expand... Well there is vertical-align, but it only works in specific cases, and generally not when you need it.
thejadedmonkey said: There's (sadly) no valign for CSS. Click to expand... Well there is vertical-align, but it only works in specific cases, and generally not when you need it.