The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Height by percentage Reply To: CSS Height by percentage


Tables require a lot more CSS syntax:

Instead I’d just replace div heights with min-height in my example earlier above to get similar results with less syntax. I updated the CodePen snippet to min-height (drkjc).

Margins may give some additional headache when not using tables, but those issues are usually easily resolved (overflow: hidden; or giving some top and bottom padding to the divs).

Of course we still don’t really know the context of this.