View Single Post
  #8 (permalink)  
Old Jan 30th, 2008, 11:29
welshstew's Avatar
welshstew welshstew is offline
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,485
Blog Entries: 13
Thanks: 1
Thanked 20 Times in 18 Posts
Re: margin and padding in different browsers

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
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Reply With Quote