try to use css keyword:  !important

example:
#main {
   width:600px !important;
   width:800px;
}



On Dec 9, 10:03 am, vkrejcirik <[email protected]> wrote:
> I use Standard GWT style, so my buttons have .gwt-Buttons style. I
> create my css file, where I add for example this:
>
> .gwt-Button-activeJob {
>         padding: 0.2em;
>         margin-top: 1.5em;
>         margin-right: 0.2em;
>         margin-left: 0.3em;
>         margin-bottom: 0.3em;
>         padding-left: 1em;
>         padding-right: 1em;
>
> }
>
> In java code:
>
> cancelButton.addStyleDependentName("activeJob");
>
> But properties margin and padding are set in .gwt-Button in
> Standard.css file. So button ignores my definitions of padding and
> margin. Is there any solution how could I overwrite these properties?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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.

Reply via email to