IE8 and width calculation

Discussion in 'HTML & Website Design' started by venkata_kesava, Oct 26, 2009.

  1. #1
    Hello Everyone,

    Good Morning. I am trying to migrate my web site to support IE8. I am facing strage problem with the width calculation of TH. Problem is as below.

    I have table with one TR and multiple TH. I have set the TH width to 50px through JavaScript and i have attach the CSS class which set the border of 1px and padding of 6px to the TH. But when i get the width of the TH it has return me only 50px. Actually it should return 62.

    I have verify the same in IE6 and IE7, both has return 62px.

    Is there any change made in IE8 regarding width calculation of the component
     
    venkata_kesava, Oct 26, 2009 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    IE8 does not work like IE7 which does not work like IE6. There are a multitude of factors affecting this, too, such as doctype, haslayout and such. As always, without markup, anything we say would be a guess.
     
    drhowarddrfine, Oct 26, 2009 IP
  3. venkata_kesava

    venkata_kesava Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the response.. Do you have any list of modification made from IE7 to IE8
     
    venkata_kesava, Oct 26, 2009 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #4
    See my first link in my sig.
     
    drhowarddrfine, Oct 27, 2009 IP
  5. forextrendalerts

    forextrendalerts Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi, IE8 does not work like IE7 which does'nt work like IE6. There are many factors affecting this, such as doctype, haslayout etc....
     
    forextrendalerts, Oct 29, 2009 IP