SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist mumford1's Avatar
    Join Date
    Sep 2002
    Location
    UK
    Posts
    567
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Width not as wide in IE5 why... is it a padding issue

    Hi

    Could somebody please take a look at this http://www.omegadm.co.uk/test.htm

    Why does the outer white border not measure its specified pixels in IE5 its fine in NS 6 and IE6 (780px)

    If you take a screenshot and measure them you will see.

    Thanks for any help

    Stylesheet in html doc.

  2. #2
    SitePoint Addict BenANFA's Avatar
    Join Date
    Apr 2003
    Location
    Bath, UK
    Posts
    353
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This because of the Box Model Error in IE5.x

    Basically in IE6, NS6/7 Opera and Mozilla the width of an element is it's contents width with border and padding on top of that, as it is specified.

    However in IE5 a bug means that width is taken to be the width of the content plus padding plus borders. That means if you set the width on an element and give it a 7 pixel border in IE5 it will appear 14 pixels narrow than you expect (7 on the left and 7 on the right).

    See Tantek's Box Model Hack for information on how to correct it.

  3. #3
    SitePoint Evangelist mumford1's Avatar
    Join Date
    Sep 2002
    Location
    UK
    Posts
    567
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the response

    I thought I read about this some where


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
  •