Home > DeveloperSection > Forums > word-break and word-wrap is not work in opera and mozilla (less than 17.0 version).
Pravesh Singh

Total Post:411

Points:2881
Posted on    April-25-2013 8:36 AM

 HTML5 HTML5 
Ratings:


 1 Reply(s)
 1938  View(s)
Rate this:
I want to break a word which is in a table and table is under a div its work proper in all browser but in opera and mozilla (less than 17.0 version) it don't work.
Below is my code which  is use in my web page.
<div style="width: 100px; border-bottom: 1px solid #686c71; word-break: break-all;
    word-wrap: break-word;">
<table>
     <tr>
          <td>
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
          </td>
     </tr>
</table>
</div>



Vijay Shukla

Total Post:100

Points:700
Posted on    April-26-2013 1:15 AM

As far as you need the below code which work proper

<div style="width: 100px; border-bottom: 1px solid #686c71; word-break: break-all;

    word-wrap: break-word;">

    <table class="left-Content" cellpadding="0" cellspacing="0" style="table-layout: fixed;">

     <tr>

          <td>

WWWWWWWWWWWWWWWWWWWWWWWWWWWWW

          </td>

     </tr>

</table>

</div>


Don't want to miss updates? Please click the below button!

Follow MindStick