CSS question

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

CSS question

Postby paul_eo » Wed Sep 17, 2008 6:59 pm

New version of Eclipse, new GWT Designer, GWT 1.5.2 on windows XP home.

Create a new project
Create a new module (ImageViewer)

It has a button on it that says click me. The button is huge font is bigger than I'd like. It's not the same old grey button in 1.4 that I use at work.
Clip0001.jpg
Clip0001.jpg (7.53 KiB) Viewed 748 times

So I go into GUI designer to the clickMeButton styleName property press the ... button it brings up the style sheet designer.
Clip0003.jpg
Clip0003.jpg (22.86 KiB) Viewed 748 times

Now the sylename .gwt-Button is not in the created ImageViewer.css ... where is it?

I Add a new style called .gwt-Button with parameters like so

.gwt-Button {
font-size: 50%;
}

Press ok run the ImageViewer program again. The button has not changed one bit.

What am I missing here. How does the ImageViewer.css have anything to do with the button. There must be another style sheet somewhere that GWT is accessing probably buried in the gwtUser.jar maybe.

Can anyone point me in the right direction when it comes to style sheets with regards to GWT because this (what should be a simple example) doesn't work.

Thanks
paul_eo
 
Posts: 1
Joined: Wed Sep 17, 2008 6:43 pm

Re: CSS question

Postby Eric Clayberg » Wed Sep 17, 2008 7:20 pm

paul_eo wrote:There must be another style sheet somewhere that GWT is accessing probably buried in the gwtUser.jar maybe.

Look at standard.css in the com.google.gwt.user.theme.standard.Standard folder of get-user.jar.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: CSS question

Postby gangotri » Tue Dec 09, 2008 9:05 pm

How to add a myspace background using css? i only want to add a background image instead of having a grey bg for the default. i don't want to have the white part w/ all the info of the default to be part of the bg, only the grey area. is there a css code for this?
gangotri
 
Posts: 1
Joined: Thu Dec 04, 2008 10:22 pm

Re: CSS question

Postby Eric Clayberg » Wed Dec 10, 2008 6:25 am

No idea.

General questions about using CSS with GWT should be directed to Google's GWT support forum.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests