Possible duplicate:
Is there a way to text text in a div?
I have a problem with css and html. I have a description, and I want to put it in a box with a width of 100 pixels, and I want the text to go on the page. I created a div as thisL:
<div style="width:100px; border:1px Solid Black; height:200px; overflow:scroll; "><p>text here...</p></div>
However, when I put the text and there is no space, the text does not wrap. Therefore, if the user had to insert one word that would cover a width of more than 100 pixels, then the text will flow to the right, which I do not want ....
How to stop this? I noticed that facebook wall posts do not do this behavior ....
source share