Css - (Line|word) (wrap|Breaking)

> (World Wide) Web - (W3|WWW) > CSS - Cascading Style Sheets - Markup Language (HTML|XML) Skin

1 - About

Line breaking, also known as word wrapping, is the process of breaking a section of text into lines such that it will fit in the available width of a page, window or other display area (such as a viewport)

It allows

  • text to be read from top to bottom without any horizontal scrolling.
  • the display of text to adapt flexibly and dynamically to displays of varying sizes.

3 - Type

3.1 - Line

Break by character

3.2 - Word

Break lines between words rather than within words.

Word wrap makes it unnecessary to hard-code newline delimiters within paragraphs

Advertising

4 - Soft vs hard

4.1 - Soft

A soft return or soft wrap is the break resulting from line wrap or word wrap (whether automatic or manual),

4.2 - Hard

A hard return or hard wrap is an intentional break, creating a new paragraph.

5 - Documentation / Reference

web/css/wrap.txt · Last modified: 2019/02/09 11:41 by gerardnico