I have the folowing html:
<div class="box">
long text here
</div>
and css:
.box {
width: 400px;
height: 100px;
overflow: auto;
border: 1px gold solid;
}
I want only a vertical scroll. But when a word is too long, a horizontal scroll is displayed. How do I make the long words wrap ?
If needed, I can use a trick with jQuery or PHP, but I would like to solve it using CSS, because it's CSS job.
You can fiddle here: http://jsfiddle.net/879bc/1/