Skip navigation
Currently Being Moderated

Clear Float

Aug 10, 2012 8:50 AM

Tags: #adobe #mac #cs5.5 #dreamweaver #code #html5

Do I need this on my page?

 

<br class="clearfloat"><!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->

 

Here's the page:

http://draw.biz/index2.html

 
Replies
  • Currently Being Moderated
    Aug 10, 2012 9:00 AM   in reply to kcfi

    Have you checked the page in all the modern browsers? If it displays how you require it to then you don't need it.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 9:15 AM   in reply to kcfi

    kcfi wrote:

     

    I see now on my other pages where I do have floats in the main div that it is necessary, so I'll just leave it on all my pages. I don't think it can hurt.

     

    Yes, if you have floated elements like <divs> on your pages then a clearing solution which directly follows those <divs> is usually needed.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points