WordPress.org

Make WordPress Core

Ticket #21486: 21486-remove-auto-width-on-images.diff

File 21486-remove-auto-width-on-images.diff, 546 bytes (added by chellycat, 3 years ago)

Please use this attachment instead of "remove-auto-width-on-images.diff", because it has the ticket number appended.

  • wp-content/themes/twentytwelve/style.css

     
    285285img.header-image, 
    286286img.wp-post-image { 
    287287        max-width: 100%; 
    288         width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */ 
    289288        height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ 
    290289} 
    291290