Re: Changing the CSS of a div programmatically

2009-08-12 Thread twdarkflame
you can change css at runtime by using something like; widgetName.getElement().getStyle().setProperty(opacity,0.9); widgetName.getElement().getStyle().setProperty(zIndex,400); for whatever css propertys you want to change. (note that anything with a hypthon, however, should lose it in the name,

Changing the CSS of a div programmatically

2009-08-11 Thread Kah0ona
Hello, For my first GWT app I want to change the position of a div (HTMLPanel in my case) at run-time (e.g. after pressing a button). To do that i would like to do something like : - set the position to relative - set the top property of the div - set the left property. Any idea how? Or any