Welcome to the Treehouse Community
Looking to learn something new?
When to use float?
I have often wondered when it is best to use floats over position:relative/absolute.... Take for example 3 images that are in their respective divs. Divs are block elements, so initially each picture in a div is occupying its own line. However if I want to put all 3 pictures in one row, why should I think float:left can achieve the result I want. I can use the same example for links that children of list elements in an UL. The nature and use of float seems bizzare.
In fact do floats cause elements to end up in one row, how can I visualize the effect of float?