Susie Posted February 28, 2009 Report Posted February 28, 2009 What is this called (and what's the solution)....when you have a bottom div (let's say a footer) and it comes after two floated divs, and it's stuck to the bottom of those floated divs. You can apply padding and margins to the footer and no matter what, it won't move down..... Help!
PicnicTutorials Posted February 28, 2009 Report Posted February 28, 2009 You have to clear the floats. Put this below the floats and above the div needing to be moved.
Susie Posted February 28, 2009 Author Report Posted February 28, 2009 Duh @ me. I just figured that out and came back to post it. LOL Thanks, Eric.
PicnicTutorials Posted February 28, 2009 Report Posted February 28, 2009 Your welcome. You may run into some un wanted height with that simple code though. If so, use this instead... .clear { clear:both; line-height:0; height:0; font-size:0; /* kills IE6 bug */ }
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