That's not the reason you're initial solution didn't work. If you want it to work with addStyleName, you have to properly inject the javascript, otherwise the 3rd party stylesheet you are using (Google's is most likely) will override your CSS. All you did was remove the styling that would be applied by the stylesheet so that yours wouldn't be overwritten.
The same thing could be accomplished by adding !important to your rule or properly inserting it into your gwt.xml module description. On Tue, Apr 14, 2009 at 4:46 PM, Nick <[email protected]> wrote: > > Ok, I solved this finally. > Turns out it wasn't a css problem but I used addStyleName() instead of > setStyleName(). Changing them fixed it. > > On Apr 14, 4:41 pm, Nick <[email protected]> wrote: > > I converted an app to 1.6 and I have buttons with css to make them > > look like hyperlinks using the following: > > .myButton { > > cursor: pointer; > > cursor: hand; > > border: none; > > /* Disable the button-style */ > > background-color: transparent; > > padding: 0px; > > color: #4784C3; > > text-decoration: underline; > > > > } > > > > And now it shows a button background around the link, and the > > underline is missing. > > Anyone else seeing this and have a way to fix it? > > > > -Nick > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
