I'm using Chrome. I have a editable DIV inside a table, whose width is defined by percentage. Its CSS is as below:
div#editable {
width:20%;
white-space:nowrap;
overflow:hidden;
border:1px solid darkgrey;
}
When adding very long content into the DIV, its width begins to increase regardless of the CSS definition. Here is a demo link: http://jsfiddle.net/k5Erc/. You can try to input more content into the DIV and see its width growing.
However, if its width is defined by px or em, there is no such problem.
Could anyone tell me how to fix its width?