No, you just need to add your CSS file as an entry in the gwt.xml file but
after the <inherits name='com.google.gwt.user.theme.standard.Standard' />
line.

That way it gets added after, and it will override the 'standard' file.

Ian

http://examples.roughian.com


2009/12/27 ALEXEI BARBONI <alexeitel...@gmail.com>

> All right Ian
>
> I just comented the line <inherits
> name='com.google.gwt.user.theme.standard.Standard' /> in my gwt.xml and the
> properties of my body in my CSS file are working
>
> But I lost missed all the formats of the page, that, I guess, are in the
> <inherits name='com.google.gwt.user.theme.standard.Standard' />
>
> I will have to set it all in my CSS file now...
>
> Am I right?
>
> Thanks a lot
>
>
>
> 2009/12/22 Ian Bambury <ianbamb...@gmail.com>
>
>> Thing is, if you set the style name to "MyStyleName" then there is no
>> corresponding .MyStyleName in the GWT styles to override it.
>>
>> There is a body{} in there though and if you are including your style
>> sheet from the html file (say with a <link>) then it will get overridden by
>> the GWT style sheet which is included (later) from the gwt.xml file.
>>
>> For example, the standard GWT css file has
>>
>>
>>   background: #ffc;
>>
>> for the body.
>>
>> Two things:
>> 1) Are you including your css from the html file?
>>
>>
>> 2) Does your gwt.xml file include a GWT style sheet e.g.<inherits
>> name='com.google.gwt.user.theme.standard.Standard'/> ?
>>
>>
>>
>> Ian
>>
>> http://examples.roughian.com
>>
>>
>> 2009/12/22 ALEXEI BARBONI <alexeitel...@gmail.com>
>>
>>> Hi Ian
>>>
>>> My CSS file works fine. I mean, every widget that i put setStyleName
>>> takes all properties that are in my CSS file.
>>>
>>> I need to know where do I set the properties for the hole page.
>>>
>>> Uselly I put inside body { } in my CSS file. But in my GWT project it
>>> does not work...
>>>
>>>
>>>
>>>
>>>
>>> 2009/12/22 Ian Bambury <ianbamb...@gmail.com>
>>>
>>> Do you have some kind of GWT style overriding it?
>>>>
>>>> Have a look in your project gwt.xml file. If you are adding css in the
>>>> html host page, the it will be overridden by that.
>>>>
>>>> Ian
>>>>
>>>> http://examples.roughian.com
>>>>
>>>>
>>>> 2009/12/22 ALEXEI BARBONI <alexeitel...@gmail.com>
>>>>
>>>>>  And now I see that nothing that is inside my body css (like margin,
>>>>> font, etc) works...
>>>>>
>>>>> Where do I set properties for my hole page????
>>>>>
>>>>> thanks
>>>>>
>>>>>
>>>>> 2009/12/22 Alexei Telles <alexeitel...@gmail.com>
>>>>>
>>>>> Hi guys, I am trying to change the back color of my page, but I can't
>>>>>> do that..
>>>>>>
>>>>>> I tried by CSS
>>>>>>
>>>>>> body {
>>>>>>   background-color: #f1f2f3;
>>>>>> }
>>>>>>
>>>>>> and setting the bgcolor property of the body tag in my HTML file:
>>>>>>
>>>>>> <body bgcolor="#f1f2f3">
>>>>>>
>>>>>> </body>
>>>>>>
>>>>>> It's not working.
>>>>>>
>>>>>> Any help?
>>>>>>
>>>>>> Thanks again
>>>>>
>>>>>
>>>>>  --
>>>>> 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-tool...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
>>>>> .
>>>>> 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
>>>> google-web-tool...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
>>>> .
>>>> 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 google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
>>> .
>>> 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 google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
>> .
>> 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 google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> 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 google-web-tool...@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.


Reply via email to