Hi,
getElement().getStyle().setProperty("marginLeft", "auto");
should work.
-- J.
Am Sonntag, 10. Juni 2012 22:05:34 UTC+2 schrieb [email protected]:
>
>
> Hi,
>
> I need programmatically to set the margin of a html Element.
>
> I have found the method:
>
> gwtElement.getStyle().setMarginLeft(px, Unit.PX);
>
> But if I like to set the margin left to auto how is possible by code?
>
> Thanks in advance for any help!
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/lzDfezxT2CIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.