From aeaf200a587428cdadfb08c6b60e370d45e8edab Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Fri, 25 Apr 2014 11:25:48 -0500 Subject: [PATCH] _s: Simplify caption styles to work in HTML5 mode. Since HTML5 captions removed the additional 10px that HTML4 versions come with, the `max-width: 98%;` rule made images blurry. This slightly simplifies caption styles while still providing support for both HTML4 and HTML5 versions. See #443. --- style.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/style.css b/style.css index 3020d9ff..041f09b1 100644 --- a/style.css +++ b/style.css @@ -621,14 +621,12 @@ object { 12.1 Captions --------------------------------------------------------------*/ .wp-caption { - border: 1px solid #ccc; margin-bottom: 1.5em; max-width: 100%; } .wp-caption img[class*="wp-image-"] { display: block; - margin: 1.2% auto 0; - max-width: 98%; + margin: 0 auto; } .wp-caption-text { text-align: center;