Using jQuery 1.9.1 & have the following code in my CSS for the web page:
.breakword {
-ms-word-break: break-all;
word-break: break-all;
// Non standard for webkit
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
font-size: 0.9em; font-weight: normal;
}
The HTML code has:
<td class="breakword" align="left" style="width:54%;vertical-align:middle;">
<select name="vlist" id="vlist" class="choices">
</select>
</td>
The select
above is populated with results from a SQL query.
It just so happens that one of the items retrieved from the table is longer than the input field. In Firefox, it displays fine on multiple lines. In IE8 however, I cannot get it to display except on 1 line. Also, it will overlay the field next to it.
The data retrieved would be:
<Row>
<ID>15</ID>
<vtext>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</vtext>
</Row>
<Row>
<ID>16</ID>
<vtext>This is a test item for the dropdown</vtext>
</Row>
What am I missing about getting this to function properly in IE8?