views:

48

answers:

1

for example I have a css in test.css given below.

.test {

  top:100px;

 }

how can i increment top property from GWT ?

A: 

e.g. you can retrieve the Style of the element and alter that. other type of widgets might have other functionalities

Redlab
thank you i tested nice shot , but i previously wrote some gwt programsuch as changing setAttribute("style","top:101px;"),in FF,chrome it is OK but in IE it stays its default position but now i dont use setAttribute ,instead i use getElement().getStyle().setTop("101",Unit.PX);