you are doing nothing wrong, that's just the way it works. the problem
is that the theme's css are loaded/injected "last" at the same time as
when the module is loaded/injected
there are 2 ways to change that.
1: instead of using
<inherits name='com.google.gwt.user.theme.chrome.Chrome'/>
use
<inherits name='com.google.gwt.user.theme.chrome.ChromeResource'/
>
this way you will add the resources(css, images, ...) of this theme to
you module compilation, but it wont inject the css when the module is
loaded and you must add the css "by hand" ... in the html(or whatever)
page
<link type="text/css" rel="stylesheet" href="/<module_name>/gwt/
chrome/chrome.css"/>
and make sure it's before you css
2: the other workaround is to add "! important" to all the properties
of all the classes of you stylesheet
good luck
On Feb 23, 3:15 pm, Andrew Hughes <[email protected]> wrote:
> guess: perhaps it's the order in which the css files are listed and thus
> loaded.....
>
> On Sun, Feb 21, 2010 at 3:44 AM, Pico <[email protected]> wrote:
> > Hi all,
> > I'm quite new to GWT. I'm currently facing an annoying issue with the
> > standard css overriding my own one no matter what.
>
> > In reference to
> >http://groups.google.fr/group/Google-Web-Toolkit/msg/3e630a3059303b19
> > andhttp://groups.google.fr/group/Google-Web-Toolkit/msg/15c54d6c9e88e5f0
> > I believe to have tried everything to change the behaviour, without
> > any success.
>
> > I tried:
>
> > in GWT.XML <inherits
> > name='com.google.gwt.user.theme.chrome.ChromeResources'/> and
> > explicitly calling
> > <link type="text/css" rel="stylesheet" href="myProject/chrome/
> > chrome.css"> and
> > <link type="text/css" rel="stylesheet" href="myOwn.css"> in my HTML
> > file.
>
> > Also, having no css reference in my HTML file and injecting both files
> > via gwt.xml
> > <inherits name='com.google.gwt.user.theme.chrome.Chrome'/>
> > <stylesheet src="GWT_Parser.css"/>
>
> > No matter what, .gwt-XXX classes in chrome.css allways override the
> > myOwn.css classes.
>
> > What am I doing wrong?
>
> > --
> > 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]<google-web-toolkit%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
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.