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!

http://jsfiddle.net/hjp6f/

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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -