WordPress.org

Make WordPress Core

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

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

Removing width: auto from images, which was causing images resized in the editor to appear full width. The "width: auto" is an IE8 specific fix and should be moved to IE8-specific styles.

  • 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