Search
Tutorial > CSS > Force wrap text CSS

Force wrap text CSS

How to fix text when it go over the border. The reason this happen is when the text have no space between words. For example when you enter URL without space character or when writing a chars line.


Before: 


Solution: If the text not have a div element, create one, then write this style.

<div style="word-wrapbreak-wordwidth230px;">

    text__________________

</div>


After:





  Rating 4.6   Review by Thebestdata
Tags:word wrap , contour wrap , 
100% div height CSS
Center website CSS with tables
Center site without width
How to center website CSS using margin auto with div
CSS center absolute element
Tutorial > CSS > Force wrap text CSS