How to stop PRE tags from getting scrollbars

Problem:

You are using <pre> tags but you’re getting scrollbars that you don’t want.

Solution:

<pre style="white-space:pre-wrap">

Reference:
https://stackoverflow.com/questions/13676587/html-pre-tag-values-get-horizontal-scroll-bars-how-to-format-it

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top