Skip to content

Instantly share code, notes, and snippets.

@bueltge
Created January 7, 2012 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bueltge/1575381 to your computer and use it in GitHub Desktop.
Save bueltge/1575381 to your computer and use it in GitHub Desktop.
Remove pixel in img for responsive design
// 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