javascript - How can I apply equal heights to floating DIVs in this case? -
i dynamically parsing divs floating left each other in 2 columns. problem if div has more content/height other, page looks messy because there's no clearing floats.
i asking how can make divs have same height? (all divs have specific class .cat-widget) want them same-height float without problem , line-up on page.
any suggestions, best practice please let me know.
this solution works wonderfully:
<div style='display:table'> <div style='display:table-row'> <div style='display:table-cell'>..content..</div> <div style='display:table-cell'>..content..</div> </div> </div>
update
working example here , tutorial here. tested working in ff 3.6, ie8, chrome 7, , safari $.
Comments
Post a Comment