left The top margin of the generated box is increased enough that the top border edge is below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document. right The top margin of the generated box is increased enough that the top border edge is below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document. both The generated box is moved below all floating boxes of earlier elements in the source document.. none No constraint on the box's position with respect to floats.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>Firefox css bug</title></head><body> <div id="container"> <div style="background-color: Orange; width: 100px; height: 35px; float: left"> </div> <div style="background-color: green; width: 100px; height: 35px; float: left"> </div> <div style="background-color: black; width: 100px; height: 35px; clear: both; margin-top: 30px;"> </div> </div></body></html>
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2012, Chris Burkhardt
E-mail