Tuesday, August 6, 2013

CSSResource and href

Hi All,

I am unable to style/override the style of a href tag.

In my ***.gwt.xml I am using the clean.theme.
<inherits name='com.google.gwt.user.theme.clean.Clean'/>

In my resource bundle I am using the following style:

.mainNavLinks {
    text-align: left;
    padding: 0px 8px;
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    font-family: sans-serif,Georgia;
    color: #FFFFFF;
   
}

and programmatically I am calling :

hyperLinkOne.addStyleName(ResourceStyle.INSTANCE.mystyle().mainNavLinks());

GWT automatically wraps the hyperlink inside a div panel

<div class="gwt-Hyperlink GCB4JA0CFI"><a href="#MainOnePlace:MainOnePlace">One</a></div>

however, the styles from the clean.css takes precendence

a, a:visited {
  1. color: #0066cc;
  2. text-decoration: none;
}

So, how do I set the color of the links, (a , a:hover, etc)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment