Re: Box model: min-margin and max-margin, max-padding and min-padding

Good morning, everyone!

>> Insofar as I can tell, there's NO ideal way to do this in CSS.
>
> Make (1) display: table-row, and (2) and (3) display: table-cell, with the
> element containing all three (possibly the <body>) display: table with
> width: 100%.

So using tables for layout of non-tabular content via HTML is a no-no, but 
using "display: table", "display: table-row", and "display: table-cell" for 
such content is okay?  Or would that be considered a non-ideal hack while 
waiting for better support of other properties?

This reminds me of something: Is there any CSS property--either extant or 
proposed--to control whether a box containing floated content 
elements--paragraphs, for example--should be collapsed (as in Gecko) or 
retain the height it would normally have (as in Internet Explorer 
sometimes--apparently when style information is applied externally of an 
element, but not when applied directly to the element)?  If not, should 
there be?  It seems that such a property would be useful for when it is 
desirable to see a containing box (for background and border colors, for 
example) in multi-column layouts such as the one in Andrew Thompson's 
diagram.


Kind regards,

Brian Sexton 

Received on Friday, 1 October 2004 15:38:52 UTC