Shrink-to-fit boxes
The content in a simple div
one
two two
three
table
one
two two
three
display: table
one
two two
three
float
one
two two
three
display: inline-block
one
two two
three
position: absolute
one
two two
three
position: fixed
one
two two
three
Other related tests:
Shrink wrap effect is broken in IE6-/Win in presence of hasLayout children
Shrink-to-fit boxes
Widthless Floats
shrink-to-fit and center
Further
IE/Win shrink-to-fit notes
inline-block in IE/Win
CSS tests home