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
Зарегистрируйся сейчас
или Подпишись на будущие тесты