Can someone explain me the pre, pre line and pre wrap? | Sololearn: Learn to code for FREE!

+1

Can someone explain me the pre, pre line and pre wrap?

11/29/2018 8:20:22 PM

Sumaya

1 Answer

New Answer

+1

pre : Whitespace is preserved by the browser. Text will only wrap on line breaks. Acts like the <pre> tag in HTML pre-line : Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaks pre-wrap : Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks -------------------------------------------------------------------- | | New lines | Spaces and tabs |Text wrapping | |-------------------------------------------------------------------- |normal | Collapse | Collapse | Wrap | |pre | Preserve | Preserve | No wrap | |nowrap | Collapse | Collapse | No wrap | |pre-wrap | Preserve | Preserve | Wrap | |pre-line | Preserve | Collapse | Wrap | |-------------------------------------------------------------------- Check also the following for examples : https://www.impressivewebs.com/css-white-space/