Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7428099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:41:27+00:00 2026-05-29T08:41:27+00:00

I am new to GWT/uiBinder (latest version of GWT and testing under latest Eclipse)

  • 0

I am new to GWT/uiBinder (latest version of GWT and testing under latest Eclipse) and really puzzled. My CSS for buttons is …

/* --button-- */
.gwt-Button {
    font-size: 16px;
    font-weight: normal;
    color: #0F0;
    background: #F00;    /* this gets ignored */
}

The background does nothing, the rest works.

I have tested that this CSS entry does something by changing the color and seeing that it works. I have also tried “background-color” (I have seen both in various docs). The background never changes.

I also tested a gwt-TextBox as follows and it works just fine.

/* --text box-- */
.gwt-TextBox {
    font-size: 16px;
    font-weight: normal;
    color: #0F0;
    background: Beige;
}

Note: I know that sometimes while testing you have to refresh the web page to see your changes.

Note: I can set the button background by using a CSS entry called “myButton” and using styleName=’myButton’ it in the uiBinder entry.

Note: The button is in a Layer in a LayoutPanel in a north:DockLayoutPanel in an east:DockLayoutPanel.

Help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:41:29+00:00Added an answer on May 29, 2026 at 8:41 am

    https://stackoverflow.com/a/7833358/635411

    You can use a more specific selector like the other answer suggests:

    /* --button-- */
    button.gwt-Button {
        font-size: 16px;
        font-weight: normal;
        color: #0F0;
        background: #F00;
    }
    

    Personally, I try to avoid overwriting the default styles because of the precedence issues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When i create a new GWT (version 2.3) project using the Eclipse (version 3.5)
I am new to GWT. I have developed a GWT application in version-1.6.4 and
I'm absolutely new to GWT, java and eclipse, but I'm an experienced MS programmer.
I am new to GWT and I am having trouble with a button causing
I am working with gwt 2.3 UIbinder.In UIbider one apply css inline to gwt
I created a new gwt project with google application engine in eclipse. But when
I would just like to setup a new GWT project in Eclipse and use
I am new to GWT and am going through the docs, examples, demos etc.
When I'm creating new project with GWT plug in it creates a skeleton project
I'm still pretty new to JSON and GWT and I'm trying to figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.