From a8edd0c5aa06b905e8e1550fd6a5c01e46375194 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 24 Jan 2014 22:04:39 -0800 Subject: [PATCH] Fix `pre` text formatting and overflow Don't visually break `pre` text over multiple lines. Trigger a scrollbar when the preformatted text is too wide for its container. --- normalize.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/normalize.css b/normalize.css index a7a42e7..41d4381 100644 --- a/normalize.css +++ b/normalize.css @@ -172,11 +172,11 @@ samp { } /** - * Improve readability of pre-formatted text in all browsers. + * Contain overflow in all browsers. */ pre { - white-space: pre-wrap; + overflow: auto; } /**