Recently, I encountered an issue while using Chrome. Inside a table, there is an editable DIV with a width defined in percentage. The CSS for the DIV looks like this:
div#editable {
width:20%;
white-space:nowrap;
overflow:hidden;
border:1px solid darkgrey;
}
The problem arises when very long content is added to the DIV - its width starts increasing beyond what is specified in the CSS. You can test this behavior by visiting this demo link: http://jsfiddle.net/k5Erc/. Feel free to input more content and observe how the width grows uncontrollably.
Interestingly, if the width is defined in pixels or em units, this issue doesn't occur.
Does anyone know how to resolve this width expansion problem?