html - asp:TextBox with TextMode="MultiLine" Wrap="True" will not wrap -
update: below question still valid, tested page in chrome , works expected. when hit page in ie not wrap. start researching difference. let me know if know of ie fix this. thanks
i have asp:textbox not wrap. i've run across multiple articles must have textmode="multiline" wrap="true"
, , do, text still runs out of text box.
i don't think need post full page, tell me if do. here's asp:textbox, , css class acting on <td>
. please let me know if see why text not wrapping?!
<td class="auto-style130" > <asp:textbox id="lbl_pain1_drug" width="400px" runat="server" rows="4" textmode="multiline" wrap="true" readonly="true" borderstyle="none" borderwidth="0" font-names="tahoma" height="55px" style="overflow:hidden" > </asp:textbox> </td>
here class="auto-style130"
.auto-style130 { /*sig section of script*/ border: .1px solid #808080; word-wrap: break-word; word-break: break-all; height: 50px; width: 402px; vertical-align: middle; }
here article found solution, says newest ie browsers handle textbox wrapping little different used to. solution add white-space: pre-wrap;
css. here's new block looked like:
.auto-style130 { /*drug section of script*/ border: .1px solid #808080; white-space: pre-wrap; height: 35px; width: 402px; vertical-align: middle; }
this made wrap!
Comments
Post a Comment