Skip to content

Commit

Permalink
Twenty Twelve: move IE8 styles to specific IE selector, props obenlan…
Browse files Browse the repository at this point in the history
…d. Closes #21440.

git-svn-id: http://core.svn.wordpress.org/trunk@21516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
lancewillett committed Aug 15, 2012
1 parent 2bf29fe commit 6ef6055
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wp-content/themes/twentytwelve/style.css
Expand Up @@ -286,7 +286,6 @@ img.size-large,
img.header-image,
img.wp-post-image {
max-width: 100%;
width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}

Expand Down Expand Up @@ -1608,4 +1607,10 @@ img#wpstats {
.ie .widget-area {
float: right;
width: 26.041666667%;
}
.ie img.size-full,
.ie img.size-large,
.ie img.header-image,
.ie img.wp-post-image {
width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
}

0 comments on commit 6ef6055

Please sign in to comment.