IE and Mozilla show different....

Discussion in 'HTML & Website Design' started by PLRGuru, Jun 19, 2007.

  1. Ginger Ninja

    Ginger Ninja Guest

    Messages:
    161
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #21
    I learn't by practice, not from books. kk5st hit the nail on the head... And there was really no need to insult my ability simply because I code differently to you.
     
    Ginger Ninja, Jun 20, 2007 IP
  2. kmria

    kmria Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    I think the most effective way is to import css file in your html page. With this option you can have full control over your display from CSS file rather than HTML. This is the code I use for all my CSS file and it works fine in IE, FF or Safari...

    BODY {
    margin : 0px 0px 0px 0px;
    margin-bottom : 0px;
    margin-top : 0px;
    background-color:#ffffff;
    }


    try this way... it will make your life easy for ever.

    good luck.
     
    kmria, Jun 20, 2007 IP
  3. x-noise

    x-noise Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    the problem can be solved like this:

    <div id="wrapper">
    <!-- content here -->
    </div>

    the css:

    #wrapper {
    margin:0 auto;
    width: {in here the width of your content exactly}
    }

    I mention that this solution works ONLY with a strict doctype. Aparently IE6 does not understand the auto value for margin unless it's declared with a strict doctype.

    However, if you have a trans or loose doctype, for IE there is another solution:

    body { text-align:center; } -> Remember this is only for IE. Presumably it will work for versions earlier than ie6.0 (meaning 5.0 and 5.5).

    Good luck.

    PS: don't forget that width, because a div has 100% of the parent element's width as a starting option (keeping in mind that body is it's parent, it will have 100% of the viewport).
     
    x-noise, Jun 20, 2007 IP
  4. PLRGuru

    PLRGuru Banned

    Messages:
    960
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #24
    Clive solved my issue.... Thanks a million...
     
    PLRGuru, Jun 21, 2007 IP
  5. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #25
    Hey you're welcome, happy to help you out :)
     
    Clive, Jun 21, 2007 IP
  6. Sinfull

    Sinfull Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #26
    I find this alot when coding sites, but I prefer to go on ie.
     
    Sinfull, Jun 21, 2007 IP