What CSS property inserts a line break?


The word-wrap property specifies whether or not to transfer long words that do not fit in the width of the specified area. This property is of a rough nature and when validating the document in CSS3 gives an error.


word-wrap: normal | break-word | inherit


normal -The rows are not moved or moved to locations where the transfer is explicitly specified (for example, using the <br> tag).

break-word - Line wrapping is added automatically so that the word fits into the specified width of the block.

inherit -Inherits the value of the parent.


   .exp { 
    width: 230px; /*Block width */
     word-wrap: break-word; /*Hyphenation*/ 

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з HTML & CSS
Зареєструйся Зараз
або Підпишись на майбутні тести