Click to See Complete Forum and Search --> : [RESOLVED] DIVs and height - Rule of Thumb?
Barton68
06-12-2007, 05:03 AM
If you using DIVs to give a tabular struture and using EMs for font sizing, is it best to give the DIVs a definitive height or let nature take it's course?
On certain browsers I get overflow's of text due to the expanding fonts.
Thanks.
ray326
06-12-2007, 05:07 PM
I'd let the height do what it wants to.
Centauri
06-12-2007, 07:14 PM
If you give a specific height, then text can overflow out the bottom. A div without a height specified should expand vertically with content, unless that content is floated (which then takes it out of the document flow).
Barton68
06-13-2007, 08:50 AM
Brilliant, as I thought/assumed, let nature take it's course lol
Thank you again.