treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Funky IE6/7 Bug - Calculating Width in IE6/7 is 4px off??

  • 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...
  • 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.
  • Thanks for clearing that up Chris! Glad I wasn't looking over something simple. :oops: