Search This Blog

GWT CSS Property Camel Case

setProperty(String, String) can be used to set css properties. But you need to use camel case property names, and GWT will translate it to the real css property name. (The upper case letter, e.g. A,  will be tranlated to -a)
setProperty("textAlign", "center"); // text-align: center;

for example:
Camel Case NameCSS Property
textAligntext-align
MozBorderRadiusTopleft-moz-border-radius-topleft
borderTopLeftRadiusborder-top-left-radius


See Also: About Camel Case.

No comments:

Post a Comment