Monday, March 31, 2014

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

i did but it look really ugly. Ex: I got a DockLayoutPanel & in the <g:center> I have a HTMLPanel that hold <table>. So if i use <table style="table-layout:fixed"> then some how the text inside the table were centralised like this

|                  Aaaaaaaaaaaaaaaaaaaaaaaaaa                               |---> this is the edge of the <g:center>
                   aaaaaaaaaaaaaaaaaaaaaaaaaa                                |
                   aaaaaaaaaaaaaaaaaaaaaaaaaa

Am i doing right?

I want the text to go through all the spaces, ex it should look like this:
Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

even i use<table width="100%"> but it didn't work.

Do you know how to fix it?

On Monday, March 31, 2014 1:34:59 AM UTC+11, Jens wrote:
You have to use table-layout:fixed in your CSS for the table element.

-- J.|

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment