WORD-BREAK AND WORD-WRAP IS NOT WORK IN OPERA AND MOZILLA (LESS THAN 17.0 VERSION).

Pravesh Singh

Total Post:412

Points:2888
Posted by  Pravesh Singh
HTML5 
 2269  View(s)
Ratings:
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>

  1. Vijay Shukla

    Post:100

    Points:700
    Re: word-break and word-wrap is not work in opera and mozilla (less than 17.0 version).

    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>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!