Wednesday, May 7, 2014

Re: Override html styles with css resource

Yes it's the only thing in my Host Page. It should be possible to replace the resources. So I can change the Layout of my page by changing the resources.



On Wednesday, May 7, 2014 11:43:06 AM UTC+2, Thomas Broyer wrote:
I would say it's discouraged (unless it's in a "global" CssResource that you inject in your onModuleLoad, and your GWT app is the only thing in the HTML host page) but yes it's possible.

On Wednesday, May 7, 2014 11:16:27 AM UTC+2, Dominic Warzok wrote:
Hi, 

as the gwt documentaion says the common way to apply styles is to use css resources. 

Now I try to implement cssresoures to my webapp. But I don't find an example how to override standard html attributes. 

For example I want to style a link. In normal CSS I use: 

a{
color: xxx;
}

a:hover{
color: anotherColor;
}


Is this possible in CSS Resources ? 


Thanks in advance ;) 

--
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/d/optout.

No comments:

Post a Comment