Skip to content

Instantly share code, notes, and snippets.

@dkln
Created December 17, 2010 13:19
Show Gist options
  • Save dkln/744913 to your computer and use it in GitHub Desktop.
Save dkln/744913 to your computer and use it in GitHub Desktop.
IE7 border spacing hack
// IE7 hacks
// cellspacing hack
if(jQuery.browser.msie && parseInt(jQuery.browser.version) == 7) {
$(function() {
$('table').each( function() {
var table = $(this);
if(spacing = table.css('border-spacing')) {
table.attr('cellspacing', parseInt(spacing));
}
});
});
}
@iain
Copy link

iain commented Dec 17, 2010

jaaaa hooor

@dkln
Copy link
Author

dkln commented Dec 19, 2010

ja!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment