Floatutorial: Float basics - 0 views
-
When you float an element it becomes a block box.
-
You should always set a width on floated items (except if applied directly to an image - which has implicit width). W3C's Cascading Style Sheets, level 2, CSS2 Specifications states: "A floated box must have an explicit width..." If no width is set, the results can be unpredictable.