Set CSS a single style property on every matched element using type-safe enumerations. The best way to use this method (i.e. to generate a CssSetter) is to take the desired css property defined in {@link CSS} class and call the {@link TakesCssValue#with(HasCssName)}method on it. ex :
$("#myDiv").css(CSS.TOP.with(Length.cm(15))); $("#myDiv").css(CSS.BACKGROUND.with(RGBColor.SILVER, ImageValue.url(""), BackgroundRepeat.NO_REPEAT, BackgroundAttachment.FIXED, BackgroundPosition.CENTER)); $("#myDiv").css(CSS.BACKGROUND_ATTACHMENT.with(BackgroundAttachment.FIXED));