Saturday, March 29, 2014

Why “word-wrap” css style doesn't work inside a <table> (GWT)?

We got this css to make a long string (without any space in it, URL for example) to fall into many new lines rather than just show 1 line:

.wordWrap{  word-wrap:break-word;  }

in .xml file

<table>      <tr>         <td>            <g:HTMLPanel ui:field="myPanel" addStyleNames="{style.wordWrap}" > <g:Label text="Aaaaaa..very long string without any space in it... aa"> <g:/HTMLPanel>         </td>      </tr>  </table>

This does not work.

However, if we remove the <table> then it work fine

So Why "word-wrap" css style doesn't work inside a (GWT)?


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment