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
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts

    Clearing out margins for IE ???

    In order to prevent positional problems with IE
    my css file starts off with:

    body {
    margin: 0;
    padding: 0;
    }

    form {
    margin: 0;
    padding: 0;
    }

    Should I also be clearing out values of other elements that IE may put margins on ?

    eg div, table, span, tr, td, etc ???

    Many thanks
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #2
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Typically, you want to leave most of the defaults because otherwise you will end up using bytes that are unnecessary. There was a thread a couple of weeks ago about something similar, though I can't seem to find it. In any case, it means that you may explicitly define the defaults, even though they are already defined. Change the markup to suit you, but don't overwrite everything. :-P
    PHP Code:
    $hello file_get_contents('hello.txt'); echo $hello
    hello

  • #3
    Regular Coder BonRouge's Avatar
    Join Date
    Mar 2006
    Location
    Sendai, Japan
    Posts
    328
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'd do this:
    Code:
    * {
    margin:0;
    padding:0;
    }
    Best to remove the defaults, in my humble opinion.


  •  

    Posting Permissions

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