[thelist] Self-sizing element you can style

Gunlaug Sørtun gunlaugs at c2i.net
Sun Dec 4 10:21:04 CST 2005

Dave Merrill wrote:
> Display: table is ok in Mozilla, but IE doesn't honor it. Display: 
> inline-block is ok in IE but not Mozilla. Any other ideas, outside of
> using conditional comments or browser sniffing to switch between
> those two display values?

Often used:

element {display: table;}
* html element {height: 0;}

...or any other solution for 'containing floats'[1]



More information about the thelist mailing list