html - How can I force text in a new line? -


i have div:

<div class="text">     thisismytextwontgoinanewparagraph </div> 

with css:

.text {     background-color:red;     width:100px; } 

as can see in jsfiddle, text goes outside of div.

is there way in css force wrapping text without spaces (such hyperlink)?

you try this, it's not pretty:

.text {     background-color:red;     width:100px;     word-wrap: break-word; } 

http://jsfiddle.net/esgen/1/


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -