There are two ways to add style sheet for one page

1. In ui.xml  specify the file name of css file Ex:<ui:style
src="client-specific.css" />
    or Inline style sheet with in ui.xml file Ex: <ui:style></
ui:style>

2.Generate your css file.  The css file is referenced by CssResource
interface.  Specify your Css file in Source attribute of
ClientBundle.

interface MyCss extends CssResource
 {
  String YourCssName();
 }

interface MyResources extends ClientBundle {
  @Source("my.css")
  MyCss css();
}

MyResources resources = GWT.create(MyResources.class);
Button button = new Button("Some text");
button .addStyleName(resources.css().className());


S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine


On Oct 19, 12:37 am, Mike Dee <[email protected]> wrote:
> How can a stylesheet be applied for one page - not an entire module?
> Our app runs fine with a single stylesheet, but for a couple of pages
> a client specified look and feel (with CSS) are needed.  I'd like to
> apply (add) an additional stylesheet to just those.   How can that be
> done?
>
> Thanks,
> Mike

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