Skip to content

Commit 58990c7

Browse files
committed
Prevent overflow of a pre container in all browsers
1 parent e444e65 commit 58990c7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sanitize.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,14 @@ nav ul {
123123
/**
124124
* 1. Correct the inheritance and scaling of font size in all browsers.
125125
* 2. Correct the odd `em` font sizing in all browsers.
126+
* 3. Prevent overflow of the container in all browsers (opinionated).
126127
*/
127128

128129
pre {
129130
font-family: monospace, monospace; /* 1 */
130131
font-size: 1em; /* 2 */
132+
overflow: auto; /* 3 */
133+
-ms-overflow-style: scrollbar; /* 3 */
131134
}
132135

133136
/* Text-level semantics

0 commit comments

Comments
 (0)