Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: IE6 Margins

  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE6 Margins

    Hi, I'm making a website and am having some problems removing the whitespace between two elements in IE6. It looks fine in Firefox, Safari, IE7, but IE6 has about 3px of space that I can't seem to eliminate. The page is located at http://209.7.3.209/ and it's in any one of the navigation tabs between the quote text and the image that goes along with it. Any help would be greatly appreciated.

  • #2
    New Coder
    Join Date
    Aug 2007
    Posts
    66
    Thanks
    2
    Thanked 0 Times in 0 Posts
    use this style

    body{
    margin-left:0px;
    margin-top:0px;
    margin-right:0px;
    margin-bottom:0px;
    }

    should get rid of all page margins.

  • #3
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Or to create it even easier:

    margin: 0;

    One other way to do this is to use the Universal Selector to zero out all margins and padding, then re-apply them as you need them. You might come across fewer display issues this way. And if it is a margin or padding problem then this will help.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •