Grand_master Posted March 11, 2006 Share Posted March 11, 2006 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 More sharing options...
S@m Posted March 13, 2006 Share Posted March 13, 2006 I would use the clear if you wanted to make sure your header/nav were stacking on top of one another (vertically). Otherwise, I don't see why you would need to clear them right now... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now