Thank you very much for ur answer. Yes, u right it's just css problem. I
setHTML("<table>...</table>"); & that is why it didn't go to the center.
On Tuesday, April 8, 2014 7:15:06 PM UTC+10, [email protected]
wrote:
>
> Hi Tom,
>
> this is not really a GWT specific question but rather an HTML+CSS issue.
> GWTs FlowPanel is just rendering a DIV tag. Whatever your inner HTML may
> be and how your CSS looks like will decide if it works as expected or not.
> Whenever I do such layouting, I copy the DOM-structure produced with GWT
> into a plain HTML file and link my custom CSS to it.
> Then I can quickly play arround with CSS changes and hit F5 to refresh in
> browser. Compared to GWT development cycles this gives you factor 100 to
> 1.000.000 in speed for your testing turnarounds. If you get stuck with CSS
> issues stackoverflow is the right place for quickest support but then do
> not post GWT code but a jsfiddle URL or the like.
>
> Cheers
> Jörg
>
> Am Montag, 7. April 2014 08:38:45 UTC+2 schrieb Tom:
>>
>> I have just 1 FlowPanel & 1 InlineHTML, the following code doesn't make
>> InlineHTML go into the middle of FlowPanel.
>>
>> myFlowPanel.setWidth("100%");
>> myFlowPanel.add(myInlineHTML);
>> myFlowPanel.addStyleName(getView().getRes().css().textAlignCenterImportant());
>>
>> //This is css
>> .textAlignCenterImportant{
>> text-align:center !important;
>> }
>>
>> *How can we centralise the myInlineHTML inside myFlowPanel (GWT) by just
>> using 1 FlowPanel & 1 InlineHTML without using other extra widgets?*
>>
>> *Also
>> **http://stackoverflow.com/questions/22905181/how-can-we-centralise-the-myinlinehtml-inside-myflowpanel-gwt-y-just-using-1-f
>>
>> <http://stackoverflow.com/questions/22905181/how-can-we-centralise-the-myinlinehtml-inside-myflowpanel-gwt-y-just-using-1-f>*
>>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.