From f8dbb79a133689d2dc66f5bf34cdf7de0495c34d Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 11 Dec 2017 23:32:01 +0000 Subject: [PATCH] Twenty Ten: Use global img contraint for captions Fixes an incompatibility with the way caption width is set since 4.9, where the caption element would cover the whole content width. Props slilley, Clorith, hardeepasrani. Fixes #42604. git-svn-id: https://develop.svn.wordpress.org/trunk@42386 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyten/style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentyten/style.css b/src/wp-content/themes/twentyten/style.css index d73dadd075..9012246ce0 100644 --- a/src/wp-content/themes/twentyten/style.css +++ b/src/wp-content/themes/twentyten/style.css @@ -803,6 +803,8 @@ img.size-full, img.size-large, img.size-medium, .attachment img, +.entry-content img, +.wp-caption img, .widget-container img { max-width: 100%; /* When images are too wide for containing element, force them to fit. */ height: auto; /* Override height to match resized width for correct aspect ratio. */ @@ -837,7 +839,6 @@ img.aligncenter { background: #f1f1f1; line-height: 18px; margin-bottom: 20px; - max-width: 632px !important; /* prevent too-wide images from breaking layout */ padding: 4px; text-align: center; }