Front End Programmer Question:
Download Questions PDF

How to clear a floated element?

Front End Developer Interview Question
Front End Developer Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is a float?Tell me why do we need to use W3C standard code?