Hi! Hyperlink is not only a <a>- tag! There is a <div> (or an other container) which includes the <a> tag! You have to say, that the <a> tag from the hyperlink is changing its color. Add the "a" after ".Login" to apply the style to the link.
.Login a { color:#FFFFFF } This should work! -Danny 2009/2/26 karthickkumarjg <karthickkuma...@gmail.com> > Hi > I hope in CSS, the order it is declared matters. If the css style a is > referred from the HTML, then it takes the precedence. This might be > something do deal with CSS than with GWT. > > regards > Arjun. > > On Thu, Feb 26, 2009 at 2:37 PM, Ray <huyi0...@hotmail.com> 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? >> >> > > > -- > Regards, > Karthick J G > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---