Simply, style entries from the class (.gwt-label, for example) are
more important for the html renderer than element-related one.
So, what you could do is to replace style declarations from the
public.css with your own.

Also, if you're specifying fonts, be sure not to forget about fallback
ones. So, if you'd like to make a style with Times font, you should
see something similar to following:

.gwt-Label {
   font-family: Times, arial, sans-serif;
   ....
}

if the client's system does not have Times  font installed, it would
use arial, if no arial - any of the sans-serif fonts.

On Aug 25, 10:18 am, Parvez Shah <[email protected]> wrote:
> I am sorry I was not clear in stating my problem.
> I did set the css property . i tried setting in the body
>
> body{
>
> }
>
> i tried setting in the EntryPoint class
> in my application EntryPoint load the main panel and main panel hold
> all the other subsequent widgets.
> I tried to set it in main panel.
> only things which works is setting font style for each individual
> widget. I find that to be bit wrong as  I am sure there is a neat way
> to do it in some common place, not sure where that place is.
>
> On Aug 25, 6:37 pm, (श्री) GNU Yoga <[email protected]> wrote:
>
> > parvez,
>
> > On Aug 25, 5:23 pm, Parvez Shah <[email protected]> wrote:
>
> > > Hello,
> > >  is there a way to set Font style for complete application, I tried
> > > setting the font in the Main.html but to no avail
>
> > you will have to set it in the CSS (under public folder) and it should
> > work
>
> > refer:http://lkamal.blogspot.com/2007/08/add-css-style-for-gwt-widgets.html
--~--~---------~--~----~------------~-------~--~----~
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