From ae398881f2449b5ba262c1e7c5af84e08f0754f5 Mon Sep 17 00:00:00 2001 From: lancewillett 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: http://core.svn.wordpress.org/trunk@21407 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/style.css b/style.css index fb5d3c244..523963779 100644 --- a/style.css +++ b/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,