Hi

I'm running Firefox 3.x in web mode (where the padding of 50px is working
fine),
and IE in hosted mode (where the padding of 50px is not showing).

So that means it is a conflicting CSS rule?
Is there a workaround to this problem?
Can we create a CSS for Firefox, and another one for IE?


There is a <stylesheet> tag pointing to my CSS in the GWT module XML,for
example: <stylesheet src='MyApp.css' />


On Wed, Nov 5, 2008 at 2:51 AM, Sumit Chandel <[EMAIL PROTECTED]>wrote:

> Hi Hez,
> Here are a couple of questions that should help figure out what's going on:
>
> 1) Which browser are you using when running in web mode (where the CSS
> styles are working)? Compare that to the browser that is being used in
> hosted mode (IE for WIndows, FF for Linux and Safari for Mac). Is the
> browser you're using in web mode different from the one that is embedded in
> hosted mode? If so, it's possible that you may have conflicting CSS rules
> outside of the ones posted above that could be causing issues. If the rule
> posted above is the only one you have applied, though, this would be less
> likely.
>
> 2) Could you double-check and make sure that you included the <stylesheet>
> tag pointing to your CSS resource in your GWT module XML? If that's not
> present, hosted mode won't be able to pickup the stylesheet, and hence won't
> be ble to apply the styles you're expecting to see in the hosted mode
> browser.
>
> Hope that helps,
> -Sumit Chandel
>
> On Mon, Oct 27, 2008 at 6:46 AM, hezjing <[EMAIL PROTECTED]> wrote:
>
>> Hi
>>
>> I have a CSS style rule "form" defined like this,
>>
>> .form {
>>   padding: 10px
>> }
>>
>>
>> then I add this style to a Grid panel like this,
>>
>> class MyPanel extends Grid {
>>
>>     MyPanel() {
>>         super(2, 2);
>>         addStyleName("form");
>>     }
>>     ......
>> }
>>
>>
>> The padding effect does not show in hosted mode (even if I changed to
>> padding: 50px).
>>
>> However it is working correctly when compiled and run in the browser.
>>
>> Is this a expected behavior?
>>
>>
>> --
>>
>> Hez
>>
>>
>>
>
> >
>


-- 

Hez

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to