CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
JavaScript Jungle
Funky IE6/7 Bug - Calculating Width in IE6/7 is 4px off??
Soh Tanaka
Permalink to comment
#
September 2009
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...
chriscoyier
Permalink to comment
#
September 2009
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.
Soh Tanaka
Permalink to comment
#
September 2009
Thanks for clearing that up Chris! Glad I wasn't looking over something simple. :oops:
Add a Comment
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...