Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Funky IE6/7 Bug – Calculating Width in IE6/7 is 4px off??

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26146
    Soh Tanaka
    Member

    Hey guys,

    I ran into a pretty weird bug and just wasted 30 mins investigating but came up short on an answer. Can anyone help me figure this out?

    http://www.sohtanaka.com/web-design/examples/

    This image should be 575px… but jQuery tells me its 571px in IE6/7… WHY??

    whats strange is if If I do border: 0; instead of border: none; it seems to fix the bug…

    #64275
    Chris Coyier
    Keymaster

    I’ve DEFINITELY found that IE likes border: 0; more than border: none; I’ve totally transitioned to using border: 0; – As no other browsers seem to have a problem with it.

    #64326
    Soh Tanaka
    Member

    Thanks for clearing that up Chris! Glad I wasn’t looking over something simple. :oops:

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.