Jump to content


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...