PDA

View Full Version : Floating divs not staying in wrapper tag?


FethrdWlf
03-20-2011, 11:23 PM
I'm trying to create a basic site with two sides to it; The text area, and the sidebar. To get the two divs (textarea and side) next to each other, I've made them both float in opposite directions of each other. "textarea" to the left, and "side" to the right. The only problem with that is now the two divs no longer stay within the area of my wrapper div. How can I fix that? I've tried putting a "copyright" div at the bottom of the wrapper tag to get it to extend down that far, but the rest still is on it's own.


UPADTE: Never mind.... I figured it out. Apparently I just had to add the "clear: both;" CSS to the lower-most div.