On 03/05/2010 11:34 AM, Russ wrote:
> Thank you for the reply.
>
> When creating a new GWT project in Eclipse, the wizard already creats
> a MYAPP.css and places it in the war (public) folder. It also adds a
> link in the html file to include MYAPP.css.
>
> Will modifications to MYAPP.css file trump all others - namely the
> standard.css and standard_rtl.css? Will MYAPP.css relpace the other
> css files, or simply add to (cascade) them?
>
> For some reason I still can't get that pesky top-margin down to zero.
> Even if I do this in MYAPP.css:
Try using !important.
Use a CSS inspector to see CSS info.
>
> body {
> margin-top:0px;
> margin: 0px;
> border: 0px;
> padding: 0px;
> }
>
> Thanks again,
> -Russ
>
>
>> It depends :) I don't know the specifics of your application, nor which
>> version of GWT you're using. There are many ways to reach your goal
>> using GWT. Here is one:
>>
>> Create a Public folder;
>> Put a file named MYAPP.css in that folder;
>> Modify your MYAPP.gwt.xml to call out that CSS or modify MYAPP.html to
>> load that css;
>> Compile your application. This step will copy the CSS to the same
>> directory as other compilation results;
>> Test your app to ensure that the CSS file loads (it will be empty, but
>> your server logs should show the request);
>>
>> Choose a widget whose style you want to override;
>> Find its class selector in the documentation or the source code;
>> Put that definition into MYAPP.css; modify it as appropriate.- Hide quoted
>> text -
>>
>> - Show quoted text -
>
--
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.