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 <[email protected]>
> 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 <[email protected]>
>
> 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 <[email protected]>
>>
>>> 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 <[email protected]>
>>>
>>> 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 [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]<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]<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.