Grand_master 0 Posted March 11, 2006 Report 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. Quote Link to post Share on other sites
S@m 0 Posted March 13, 2006 Report 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... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.