equipment Posted April 17, 2012 Share Posted April 17, 2012 I have following code example div#nav_wrapper { width: 700px; margin: 0 auto 0; } div#nav { float: right; } The wrapper is collabing while the div inside the wrapper is floating far till to the side of the window (web browser). Any ideas how to have the wrapper keep the div inside of it in position, without letting it float away. Quote Link to comment Share on other sites More sharing options...
haku Posted April 19, 2012 Share Posted April 19, 2012 div#nav_wrapper { width: 700px; margin: 0 auto 0; overflow:auto; } If you get scroll bars, add some bottom padding to #nav_wrapper until they disappear. Quote Link to comment Share on other sites More sharing options...
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.