Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Thanks Damien and Ian, you have been helping me a lot! On Tue, Jun 30, 2009 at 8:45 PM, Damien Picard wrote: > So simply... > I'm sorry hezjing to don't have think about "!important". > (It permits to force the rule to apply instead of cascading mechanism...) > > > > 2009/6/30 Ian Bambury > > >>

Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Damien Picard
So simply... I'm sorry hezjing to don't have think about "!important". (It permits to force the rule to apply instead of cascading mechanism...) 2009/6/30 Ian Bambury > > .my td > { > vertical-align: bottom !important; > } > > Ian > > http://examples.roughian.com > > > 2009/6/30 Damien Pic

Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Ian Bambury
.my td { vertical-align: bottom !important; } Ian http://examples.roughian.com 2009/6/30 Damien Picard > I think it is not possible, because if you don't specify a > VerticalAlignment, the default (top) is applied, with > style="vertical-alignment: top". > And there is no way in CSS to ov

Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Damien Picard
I think it is not possible, because if you don't specify a VerticalAlignment, the default (top) is applied, with style="vertical-alignment: top". And there is no way in CSS to override it... A way to cheat with it could be : .my { background: yellow; } .my div{ height: 100%; ver

Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
I think I'm a bit slow here :-P Probably I should ask how can we achieve this effect by setting CSS, without setVerticalAlignment()? On Tue, Jun 30, 2009 at 5:19 PM, Damien Picard wrote: > As you can see in the generated HTML code, the css class "my" is applied to > the DOM element "table". > N

Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Damien Picard
As you can see in the generated HTML code, the css class "my" is applied to the DOM element "table". Nevertheless, each "td" node of this table is applied the css style "vertical-align" with the setted "VerticalAlignment". And, in the XHTML/CSS definition, the style order applied is : - "style" at

Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Hi Damien Yes, it is working now and the following is what the HTML generated! BIG small Hmmm ... I thought I tried setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too! I don't know what was in my head at that time! But I'm still don't understand why my approach doesn't work?

Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Damien Picard
Hi, Could you try something like : public void onModuleLoad() { Label bigTitle = new Label("BIG"); bigTitle.setStyleName("big"); Label smallTitle = new Label("small"); smallTitle.setStyleName("small"); HorizontalPanel panel = new HorizontalPanel(); // this style will set vertical-align: botto

How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Hi I have a big label and a small label, and I want to "align-bottom" these labels when added in HorizontalPanel: public void onModuleLoad() { Label bigTitle = new Label("BIG"); bigTitle.setStyleName("big"); Label smallTitle = new Label("small"); smallTitle.setStyleName("small"); HorizontalPan