css - chrome - editable divs - line breaks in the middle of words? -


i using content editable divs , have overflow set hidden. in firefox div's correctly displayed , if word longer div rest hidden , no line break occurs. chrome inserting line breaks in middle of words longer div. way fix this?

it sounds chrome has 'word-wrap: break-word' style on default.

in div, try resetting worp-wrap normal , see if fixes it:

<div style="word-wrap: normal;">..</div> 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -