Skip to content Skip to sidebar Skip to footer

Word-wrap: Break-word Not Working In IE9

I have a privacy field (values are To: or Bcc:) and an email address field that are outputted from my database. I want the email address to always be after the To: / Bcc: and not m

Solution 1:

In browsers other than Internet Explorer — and maybe in IE9 — it's overflow-wrap.

<td style="overflow-wrap: break-word">

You could try both styles. edit Try -ms-word-wrap for IE9.


Solution 2:

Try giving the td a fixed width and then putting the contents inside a div with the styling applied. Ex:

<td style="width:300px;">
    <div style="width:300px;overflow-wrap:break-word;">
        <?php echo $Privacy; ?> 
        <span><?php echo $Email; ?></span> 
        <button class="copy">COPY</button>
    </div>
</td>

Solution 3:

I put my label in a div and give it style it works finnally

<div style="word-wrap: normal; word-break: break-all;">
<asp:Label ID="Label2" runat="server" Text='<%# Bind("REASON") %>'></asp:Label>
</div>

Post a Comment for "Word-wrap: Break-word Not Working In IE9"