White Space Property

The white-space property specifies that the text in paragraphs will never wrap.
It is used as
p
{ white-space:nowrap; }
The white-space property has the value of ‘normal’ as the default value for all the elements on a web page and can take following values

 

Value

Description

normal

Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary.

nowrap

Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a <br /> tag is encountered.

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

 

Share this post
[social_warfare]
Text Align
Page Background

Get industry recognized certification – Contact us

keyboard_arrow_up