HaoQi Li
HaoQi Li

Reputation: 12348

How can I make "pre" scroll in chrome too?

white-space:pre scrolls by default in Firefox, how can I make it scroll in Chrome too? (and I do not care about IE.)

I've tried overflow: auto;, overflow: scroll; and white-space: pre;, but none of those worked.

Upvotes: 2

Views: 2371

Answers (1)

bluefoot
bluefoot

Reputation: 10580

I think you might try overflow:scroll. Take a look at the definition at HTML Dog.

Upvotes: 2

Related Questions