can't clear a float, help please!!
-
I’m trying to build a layout based on the Whiteboard starter theme. Something went wrong there, because by default the sidebar was displayed below & to the right instead of besides the actual content. I had to use postiton:absolute to make it actually float where it should. But now that it is absolute, the footer ignores the sidebar and the two get jumbled up. I tried to clear the float and make the footer appear underneath in a 1000 different ways and nothing seems to work… guess this should be an easy one, but I really don’t know what to do any more!
Here’s the css code as of now:#content { position:relative; } #front-content{ float:left; margin-right:33%; } #sidebar { position:absolute; float:right; left:67%; max-width: 33%; } #footer .container { margin: 0 auto; clear: both; }
Also, If I only specify float:right without left:67%, the sidebar moves all the way to the left and jumbles with front-content AND the footer. I tried displaying the elemnts as blocks as well, to no effect.
- The topic ‘can't clear a float, help please!!’ is closed to new replies.