Quiz

What are the various clearing techniques and which is appropriate for what context?

Topics
CSS
  • Empty div method: <div style="clear:both;"></div>.
  • Clearfix method: refer to the .clearfix class.
  • overflow: auto or overflow: hidden method: the parent will establish a new block formatting context and expand to contain its floated children.
Edit on GitHub