CSS Pre Tag Wrap And Overflow Examples

I built this page to get a better understanding of how CSS properties affect `pre`` tags. There is no css on the page other than what you see listed on the page. Each line in the examples starts with a capitalized word followed by a collection of text and underscores designed to make it easier to see each effect.

I'm using two different versions in production

Notes

Reference

pre: The Preformatted Text element - MDN

Reference

Prevent line breaking after explicit hyphens

Reference

CSS: hyphens - MDN

Reference

CSS: line-break - MDN

Reference

CSS: overflow - MDN

Reference

CSS: overscroll-behavior - MDN

Reference

CSS: white-space - MDN