There are a number of ways to set up a clearing div.
the most simple one is:
- Code: Select all
/*clear the decks*/
.clear {clear:both; display:none;}
However, most of the time I use:
- Code: Select all
/*clear the decks*/
.clear {clear:both; width:0px; height:0px; overflow:hidden; font-size: 1px; line-height: 0px; display:none;}
As this ensures IE6 doesn't add any space to the div