SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do fix margin bugs in IE?

    Hi,

    I have a problem with margins in IE. Is there anyone who knows where I can read about how to fix bugs. I know I read somewhere that it can be a problem with margins in IE and how to get around it but don't remember where

    The problem that I have is that the margin on a div box starts from the left hand side of the window in IE, instead of the left hand side of the previous box. It looks good in FF and Opera.

    You can see for your self as it's a bit difficult to explain My Webpage

  2. #2
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There could be ome information here: http://www.quirksmode.org/css/

    There are other sites as well, but don't have them bookmarked. YOu can always google for "IE hack" and see what comes up.

    Nadia

  3. #3
    SitePoint Evangelist
    Join Date
    Oct 2005
    Posts
    415
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do this in the CSS firstly

    * {
    margin: 0px;
    padding: 0px;

    }

    I think thats right...removes all padding and margins from everything.

  4. #4
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the replies! I really appreciate it.

    To Nadia:
    I'll have a look at at the site and see what I can find.

    To enormousrodent:
    I tried that but there wasn't any difference. I don't think i want to remove all padding and margins anyway, but thanks anyway

  5. #5
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I tried that but there wasn't any difference. I don't think i want to remove all padding and margins anyway, but thanks anyway*
    Unless you prefer to let the browsers use their default margin and padding styles (which are inconsistent), you probably do. Countless threads are started in the CSS section here, where the poster stresses over some 'weird' space/gap/bug in 'x' browser, when the problem is none other than browser-default styles.

  6. #6
    SitePoint Evangelist
    Join Date
    Oct 2005
    Posts
    415
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    removing all padding and margins gives all the browsers the same starting point and then you can add / remove padding to the needs of the partiqular browser

    At least i think thats right

    Rodent

  7. #7
    Knowledge is key 2 progression Tryst's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looking at your website it looks ok. Are you referring to the left-hand boxes?

    Tryst


Bookmarks

Posting Permissions

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