HTML:
<div class="main" style="float:left">
lorem ipsum <br />
lorem ipsum <br />
lorem ipsum <br />
</div>
<div style="float:right">
<div class="block">block</div>
<div class="block">block</div>
<div class="block">block</div>
</div>
jQuery:
$('.block').height($(".main").height() / (3));
... each block height = height of main / 3
It kindof works but quite inaccurate because height doesn't consider the margin/padding of the .block. How do I subtract the padding/margin either automatically or manually?
Thanks