Hi! Every GWT widget has its style.
You should write style for .gwt-Hyperlink if you want to apply this rule for every Hyperlink widget in your application (Check this out http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Hyperlink.html). .gwt-Hyperlink{ color: red; font-size: 12px; /*etc.*/ } In API documentation you can find for every widget which css rules are provided for specific widget. Best regards. Ray wrote: > Hi,I have a CSS file which has something as follow: > a { > color: #777777; > font-size: 12px; > text-decoration: none ; > } > > .Login{ > color:#FFFFFF > } > Now in my GWT application when I using widget Hyperlink like: > Hyperlink link = new Hyperlink(); > link.setText("Login"); > link.setStyleName("Login"); > > that link will always using color of #777777 not #FFFFFF. If CSS > setting of a is necessary,how can I override it in my widget? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
