Please help with auto vertical height for div
or li
elements via CSS.
When I do this with table:
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="5" height="600">IMG width=100% height=auto</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
</tr>
<tr>
<td>3</td>
</tr>
<tr>
<td>4</td>
</tr>
<tr>
<td>5</td>
</tr>
</table>
as an example, every cell in the right column has 1/5 of the left cell's height. How can I do this without table and only with div
or li
elements?
The left cell's height is not known; the element is responsive.