blowfly123 Posted April 27, 2009 Report Posted April 27, 2009 I always have some new problem with this. Does anything jump out as wrong here? http://tinyurl.com/cpup4b stylesheet: http://tinyurl.com/ceprr2 I've got a wrapper div and a column div. Inside the column there's a header div then a content div. The content div has a sidebar div and then a content-text class. It's the content-text class that screws up the background. Any clue why that's happening? Thanks! (please don't quote the original URL)
jlhaslip Posted April 27, 2009 Report Posted April 27, 2009 (edited) You might needs to clear the floats by adding the following to your CSS file and adding the class to the parent div that holds the floated div's /*** see http://www.positioniseverything.net/easyclearing.html for explanation of Tony Aslett's elegant hack ***/ .clearing:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearing { display: inline-block; } /* Hides from IE-mac \*/ * html .clearing { height: 1%; } .clearing { display: block; } /* End hide from IE-mac */ /*** end clearing hack ***/ *edit* Tested, and indeed, it works as described. Edited April 27, 2009 by jlhaslip
blowfly123 Posted April 27, 2009 Author Report Posted April 27, 2009 Thanks! That did it. You guys and your mysterious hacks. I'm going to try to understand why that works for future reference.
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