Image within divs problem in IE

Discussion in 'CSS' started by orange_angel, Sep 4, 2007.

  1. #1
    I solved it.
     
    orange_angel, Sep 4, 2007 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    div tags have default margins
    these default values may vary from browser to browser,
    hence it might be better to define your div-tags all together

    like

    div.left {
    margin: 2em;
    margin-left: 0em;
    }


    ( above would define a margin of 2 em all sides except left 0 em )
    or whatever your precise needs - to force all browser to same total-sizes of all div tags.

    may be that helps you
    always make a HTML validation to assure all code is w3c compliant/fully validated before searching for other causes of display problems.
     
    hans, Sep 4, 2007 IP