Home › Forums › CSS › Help getting footer to clear sidebar › Re: Help getting footer to clear sidebar
March 17, 2011 at 9:57 am
#55312
Member
No, I can’t set things to the same height because that’s a cheat. Let’s say the administrator of the site puts complicated content in every story (say the articles are art directed).
I wrapped the two .one-half divs like you mentioned in a class called “container” and gave it a clearfix. Take a look at the results … http://3circlestudio.com/temp/layout.htm
It looks like any clear is going to cause a problem for the sidebar. My idea is that a solution is to ensure that anything that needs cleared on the left needs to be floated and have a width on it. Like this:
.container {
background: red;
float: left;
width: 640px;
}
I could be wrong, though. What do you think?