From 3ac13b6e6a779157aa801fa01a8a69c823d8d354 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 8 Mar 2013 18:58:27 +0000 Subject: [PATCH] Twenty Eleven: set images without WordPress-generated class to 100% maximum width, and fix spacing of images within caption containers. Props obenland, fixes #22366. git-svn-id: http://core.svn.wordpress.org/trunk@23654 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/style.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyeleven/style.css b/wp-content/themes/twentyeleven/style.css index c14f6ec90b..6d7188a477 100644 --- a/wp-content/themes/twentyeleven/style.css +++ b/wp-content/themes/twentyeleven/style.css @@ -867,7 +867,7 @@ dl.gallery-item { .entry-content img, .comment-content img, .widget img { - max-width: 97.5%; /* Fluid images for posts, comments, and widgets */ + max-width: 100%; /* Fluid images for posts, comments, and widgets */ } img[class*="align"], img[class*="wp-image-"], @@ -903,7 +903,7 @@ p img, } .wp-caption img { display: block; - margin: 0 auto; + margin: -2px 0 0 -2px; max-width: 98%; } .wp-caption .wp-caption-text, @@ -953,6 +953,7 @@ img[class*="wp-image-"], #content .gallery .gallery-icon img {/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */ border: 1px solid #ddd; padding: 6px; + max-width: 97.5%; } .wp-caption img { border-color: #eee;