I've changed the size of my buttons by overriding the standard gwt-
button style in my css-file:

.gwt-Button {
        padding: 1px 3px;
        text-decoration: none;
        font-size: 12px;
}

On 8 Okt., 16:26, Jeremia <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have created my own css-file and referenced it from the html-file. I
> wanted to decrease the padding for my buttons, because they were too
> big. So I made the following css configuration:
> .smallButton {
> padding-left: 1px;
> padding-right: 1px;
>
> }
>
> And then do setCls for my ext-gwt button to a style which I have
> defined in the css-file:
> createOrganizationButton.setCls( "smallButton" );
>
> Only some css properties actually works when doing it this way, which
> makes me very confused.
> Here are some css properties, which works:
> text-decoration
> margin
>
> Here are som css properties which does not work:
> padding
> width
> font-size
> border
>
> I had the same problem when working with normal GWT buttons.
> I guess it has to do with in which order different css files are
> loaded, but I cannot figure out how to fix it.
>
> Does anyone now how to make my button smaller??
> I would be very, very happy for any hint! :)
> / Jeremia
--~--~---------~--~----~------------~-------~--~----~
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