Skip to content

Instantly share code, notes, and snippets.

@bamb
Forked from bueltge/gist:1575381
Created March 21, 2012 22:06
Show Gist options
  • Save bamb/2153668 to your computer and use it in GitHub Desktop.
Save bamb/2153668 to your computer and use it in GitHub Desktop.
JavaScript: jquery rwd remove pixel from image
// remove height, width for responsive design
(function ($) {
$(document).ready(function($) {
$( 'img' ).removeAttr( 'height' ).removeAttr( 'width' );
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment