Hi all
I have added this code to my website to get rid of an empty div that was used to clear elements. Stupid question apologies in advance but how can I check if the clearfix is working? I commented out the css and it doesn't make any difference the page looks the same. Thanks
HTML Code:/* new clearfix */ .clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } * html .clearfix { zoom: 1; } /* IE6 */ *:first-child+html .clearfix { zoom: 1; } /* IE7 */ <div class="floatingrightmenu clearfix">This floats right</div> <p>This text is cleared below it.</p>



Reply With Quote


am making sense!

Bookmarks