Re: How can we centralize the myInlineHTML inside myFlowPanel (GWT) y just using 1 FlowPanel & 1 InlineHTML without using other extra Widgets?

2014-04-08 Thread Tom
Thank you very much for ur answer. Yes, u right it's just css problem. I setHTML("..."); & that is why it didn't go to the center. On Tuesday, April 8, 2014 7:15:06 PM UTC+10, joerg.h...@googlemail.com wrote: > > Hi Tom, > > this is not really a GWT specific question but rather an HTML+CSS issu

Re: How can we centralize the myInlineHTML inside myFlowPanel (GWT) y just using 1 FlowPanel & 1 InlineHTML without using other extra Widgets?

2014-04-08 Thread joerg.hohwil...@googlemail.com
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

How can we centralize the myInlineHTML inside myFlowPanel (GWT) y just using 1 FlowPanel & 1 InlineHTML without using other extra Widgets?

2014-04-06 Thread 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 .textAlignCenterImporta