Max_Salah
Max_Salah

Reputation: 2497

How to adapt bound text to div

I have two divs side by side. The problem is, when I have long bound text in one div, it overflows to the second. here is an example: http://jsfiddle.net/hjZ8F/1/

How to adapt?

Upvotes: 0

Views: 2074

Answers (1)

gabitzish
gabitzish

Reputation: 9691

Here is working version of your jsFiddle: http://jsfiddle.net/hjZ8F/2/

Just add word-wrap: break-word; to the style attribute of the long span

Upvotes: 2

Related Questions