Skip to content

Commit a8edd0c

Browse files
committed
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.
1 parent 37ea6ae commit a8edd0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

normalize.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ samp {
172172
}
173173

174174
/**
175-
* Improve readability of pre-formatted text in all browsers.
175+
* Contain overflow in all browsers.
176176
*/
177177

178178
pre {
179-
white-space: pre-wrap;
179+
overflow: auto;
180180
}
181181

182182
/**

0 commit comments

Comments
 (0)