WordPress.org

Make WordPress Core

Ticket #18940: 18968-image-improvement.diff

File 18968-image-improvement.diff, 997 bytes (added by iandstewart, 3 years ago)
  • wp-content/themes/twentyeleven/style.css

     
    853853        max-width: 97.5%; /* Fluid images for posts, comments, and widgets */ 
    854854} 
    855855img[class*="align"], 
    856 img[class*="wp-image-"] { 
     856img[class*="wp-image-"], 
     857img[class*="attachment-"] { 
    857858        height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ 
    858859} 
    859 img.size-full { 
     860img.size-full, 
     861img.size-large { 
    860862        max-width: 97.5%; 
    861         width: auto; /* Prevent stretching of full-size images with height and width attributes in IE8 */ 
     863        width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */ 
     864        height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ 
    862865} 
    863866.entry-content img.wp-smiley { 
    864867        border: none;