Front End Programmer Question:

How to clear a floated element?

Tweet Share WhatsApp

Answer:

A floated element is taken out of the document flow. To clear it you would need to do a clear:both or try overflow:auto on the containing div.

Download Front End Developer PDF Read All 67 Front End Developer Questions
Previous QuestionNext Question
What is a float?Tell me why do we need to use W3C standard code?