Jump to content

Clear:where?


Grand_master

Recommended Posts

Quick question. Is it essential to add a property value of clear:both to an element that comes after another element, whose width is 100% and may be floated?Like here, where would a clear be needed, and why would it bee needed if the 100% width prevents anything from floating alongside it?

#navigation {width:100%; float:left... plus other things to make a horizontal bar}#content {width:100%; float:left...plus other things that require this to be floated}#footer {text-align:right}

Thanks, guys.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...