IE5 borders

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Walker

    IE5 borders

    Can someone please confirm my suspicion that IE5 on Windows is including
    borders in the dimensions of a block object? The block in question has the
    following css:

    div.headerbox
    {
    position: relative;
    left: 169px;
    height: 70px;
    margin: 5px;
    margin-top: 0px;
    width: 640px;
    color:#99ffff;
    background-color: #6699cc;
    background-image: url(images/site/logotop.png);
    background-position: top right;
    background-repeat: no-repeat;
    border: 2px solid #003399;
    cursor: default;
    z-index: 2;
    }

    and works fine in IE6, Mozilla 1.3, Opera 7.11, but is 4px too short in IE5.

    Any ideas why its doing this wrong?
    Thanks

    David


  • David Walker

    #2
    Re: IE5 borders

    > Yes, Windows IE5.5 (and IE6 in Quirks mode) includes padding and[color=blue]
    > borders as part of the width and height values. A search for IE and
    > "box model" should reveal lots of pages that discuss this.[/color]

    OK, I give up. I've moved to separate style sheets for different browsers.
    Its working OK now so it'll have to do.
    Thanks

    David


    Comment

    Working...