From 46910c79e4405c3434841f3cf1df76bc4124935e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 2 Aug 2012 20:53:38 +0000 Subject: [PATCH] Twenty Twelve: add max-width rule to help captions not overflow their container at small window sizes. Props chriswallace and obenland, fixes #21383. git-svn-id: https://develop.svn.wordpress.org/trunk@21407 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-content/themes/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index fb5d3c2443..5239637793 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -317,6 +317,7 @@ img.wp-post-image { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); } .wp-caption { + max-width: 100%; /* Keep wide captions from overflowing their container. */ padding: 4px; } .wp-caption .wp-caption-text,