WordPress.org

Make WordPress Core

Changeset 19292


Ignore:
Timestamp:
11/15/11 02:20:44 (2 years ago)
Author:
nacin
Message:

Better fluid/responsive image styles in Twenty Eleven. props iandstewart, lancewillett, fixes #18940.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/style.css

    r19291 r19292  
    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 { 
Note: See TracChangeset for help on using the changeset viewer.