not able to apply style sheet

2 views
Skip to first unread message

Vik

unread,
Nov 8, 2009, 2:01:23 AM11/8/09
to google-we...@googlegroups.com
Hie 

I am pretty new to GWT.

The question is:

I create a page index.html  in the war folder.
then created a index.css in the war/css folder.

in the index.css i defined something like:
.sakflexTable {
background-color:red;
color:green;
border: 5px solid silver;
}


and in the module i m doing 
mainPanel.addStyleName("sakflexTable");

in the index.gwt.xml stuff is:
<module>
<inherits name="com.google.gwt.user.User" />

<inherits name='com.google.gwt.user.theme.standard.Standard'/>

<entry-point class="vik.sakshum.sakshumweb.client.IndexModule" />
</module>


But the style sheet is not picked up. Any help please...

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

rjcarr

unread,
Nov 8, 2009, 10:42:00 PM11/8/09
to Google Web Toolkit
Hi Vic-

It looks like you're missing the step where your html page references
your style sheet. In your index.html page you'll need to create a
style sheet link (or import) to pick up the stylesheet.
Alternatively, you can define your style sheet in your module xml file
(see the docs for help with this). Both work equivalently.

Hope this helps.
Reply all
Reply to author
Forward
0 new messages