NickNameDrive
05-19-2010, 09:45 PM
Not sure anymore if there's a way to do it. Need help??
Need to fill empty space from bottom up!
<div height 100%>
<div header height 100px></div>
<table>
<tr>
<td id="area 1">
:)
<div>content of this area sometimes a bit longer than one of area 2</div>
<div? table? td?> is it possible to have something here that will fill empty area from bottom up</something>
</td>
<td id="area 2">
:)
<div>content of this area is often longer than one of area 1</div>
<div? table? td?> is it possible to have something here that will fill empty area from bottom up</something>
</td>
</tr>
</table>
</div>
<div footer margin-top:-20px;></div>
<td>s obviously have equal heights in this case and one will stretch to match the other, but i need to alter their backgounds with different colors. So i need to place some element under those <div>s inside content area that will take up left space, without creating scroll bar.
I got "sort of slution" but it involves creating content of area 1 outside the <table> and then dragging <table> up using z-index to place under that content, as content of area 2 is often longer, that gives some fix with pixel adjustment where needed.
100% height doesn't seem to work much in this case, maybe to do with parent/child elements, don't know...
Is there a universal cross browser solution for this (ie6 not needed, but ie7 is a must)?
P.S. Can use different elements, doesn't have to be <table>s or <div>s, can use separate stylesheets, no problem. Idea is: two collumns and what was described above. Thanks to everyone!
Need to fill empty space from bottom up!
<div height 100%>
<div header height 100px></div>
<table>
<tr>
<td id="area 1">
:)
<div>content of this area sometimes a bit longer than one of area 2</div>
<div? table? td?> is it possible to have something here that will fill empty area from bottom up</something>
</td>
<td id="area 2">
:)
<div>content of this area is often longer than one of area 1</div>
<div? table? td?> is it possible to have something here that will fill empty area from bottom up</something>
</td>
</tr>
</table>
</div>
<div footer margin-top:-20px;></div>
<td>s obviously have equal heights in this case and one will stretch to match the other, but i need to alter their backgounds with different colors. So i need to place some element under those <div>s inside content area that will take up left space, without creating scroll bar.
I got "sort of slution" but it involves creating content of area 1 outside the <table> and then dragging <table> up using z-index to place under that content, as content of area 2 is often longer, that gives some fix with pixel adjustment where needed.
100% height doesn't seem to work much in this case, maybe to do with parent/child elements, don't know...
Is there a universal cross browser solution for this (ie6 not needed, but ie7 is a must)?
P.S. Can use different elements, doesn't have to be <table>s or <div>s, can use separate stylesheets, no problem. Idea is: two collumns and what was described above. Thanks to everyone!