Home › Forums › CSS › CSS Height by percentage › Reply To: CSS Height by percentage
November 19, 2013 at 11:14 am
#156553
Merri
Participant
Tables require a lot more CSS syntax: http://codepen.io/Merri/pen/vDius
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.