Revision for “Float” created on February 13, 2015 @ 09:31:32
|
Float
|
|
<strong><span style="font-size: 14pt;">What is it?</span></strong>
With CSS float, an element can be pushed to the left or right, allowing other elements to wrap around it. Float is often used with images, but it is also useful when working with layouts. <iframe width="100%" height="300" src="//jsfiddle.net/mapster86/bsLh3wh9/embedded/html,css,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe> <span style="font-size: 14pt;"><strong>How Elements Float</strong></span> <span style="font-size: 14pt;"><strong>Floating Elements Next to Each Other</strong></span> <strong><span style="font-size: 14pt;">Turning off Float – Using Clear</span></strong> |