On 03/05/2010 10:43 AM, Russ wrote: > Hi, > What is the proper way to "override" the standard.css file? > > First off, I don't know which one to modify. There are 2: standard.css > and standard_rtl.css > > If I modify them in Eclipse and then compile, SOME of my changes take > and some don't. Then, strangely, my changes are removed (yes they'e > gone) from the css files. > > Some properties I just can't seem to change. Specifically, I want the > body top-margin to be zero, but no matter what I do, there's a space > at the top of the html page of roughly 10 pixels before my widgets > begin. > > What is the correct way to customize styles in GWT? > > Thank you, > -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. -- 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.
