html - CSS Selector :after -
i have 2 divs, 1 floats left other right.
i need add clearfix after right float , have been reading on using :after selector.
i've tried create style , add relevant attributes doesnt seem work, understanding rule incorrectly?
any advice great!
it's footer want add clear fix to:
#footer:after {content: "."; display: block; height: 0; clear: both; visibility: hidden;}
what you're saying here @ end of #footer div, add content , make display block, make clear both. pull footer down on floating content.
update of code: http://jsfiddle.net/hjp6f/1/
.
Comments
Post a Comment