Making Preformated Text Wrap in CSS3, Mozilla, Opera and IE

Tero Karvinen displays “how to text wrap in CSS3, Mozilla, Opera and IE”. Here is what he says —”Code snippets and poems often use spaces for indenting text. Pre-tag is used to display preformatted text on webpages. This makes indenting visible, but has the annoying side-effect of disabling wrapping. When wrapping is disabled, long lines […]

Tero Karvinen displays “how to text wrap in CSS3, Mozilla, Opera and IE”. Here is what he says —”Code snippets and poems often use spaces for indenting text. Pre-tag is used to display preformatted text on webpages. This makes indenting visible, but has the annoying side-effect of disabling wrapping. When wrapping is disabled, long lines go out of the right side of window, which is never usefull. This howto explains how you can make preformatted text wrap on all browsers when making websites. We also learn how to make pre on any website wrap while browsing the web with mozilla.”

Full Article