Grow your CSS skills. Land your dream job.

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

  • # September 17, 2009 at 1:46 am

    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…

    # September 17, 2009 at 8:06 am

    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.

    # September 17, 2009 at 7:23 pm

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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".