What I understood is,

It is not necessary that my class should be in style.css file.

I can override them in the same button.css file and use them.

I will just try it out.

Thanks Kamal for help.

On Jul 28, 12:06 pm, Kamal Chandana Mettananda <[email protected]>
wrote:
> Say there's a button.css file provided with gwt-ext as follows.
>
> .button-1 {...}
>
> .button-2 {...}
>
> Now if you want to reuse above classes, I think you can just use them as in
> normal cases.
>
> If you want to override them, you'll have to create a css class with the
> same name and set the attributes you want.
>
> Have tried like that?
>
> ---------------------------------------
> Kamal Mettanandahttp://lkamal.blogspot.com
>
> On Tue, Jul 28, 2009 at 12:27 PM, caps <[email protected]> wrote:
>
> > Kamal,
>
> > I am thinking similar but I want to reuse the gwt-provided css
> > properties of components.
>
> > e.g; Buttons have button.css (css of gwt-ext) and from that I want to
> > use certain class.
>
> > I want to inherit some properties of gwt provided css and override
> > some of them into my css file according to requirement.
>
> > So how can I achieve it?
>
> > On Jul 28, 10:51 am, Kamal Chandana Mettananda <[email protected]>
> > wrote:
> > > Generally what we do is; set the style name in Java class and do the
> > changes
> > > in the CSS file.
>
> > >http://lkamal.blogspot.com/2007/08/add-css-style-for-gwt-widgets.html
>
> > > Isn't that what you are thinking of?
>
> > > ---------------------------------------
> > > Kamal Mettananda
>
> > > On Tue, Jul 28, 2009 at 11:14 AM, caps <[email protected]> wrote:
>
> > > > Hello all,
>
> > > > I am facing too much trouble in formatting the components of the
> > > > application.
>
> > > > I have decided to take maximum advantage of CSS.
>
> > > > /*
> > > > * Idea is, In java class just "add component to the panel or page ->
> > > > apply style class" that's it
> > > > * All other properties that can be set via style sheet should be
> > > > defined in style class only not
> > > > * in your java class.
> > > > */
>
> > > > I want to define common CSS properties for all components (panel,
> > > > page, button, etc...).
>
> > > > The reason behind is as application growing design issues are come up
> > > > very often.
>
> > > > Please help me in how can I reuse the property classed defined in css
> > > > gwt-ext(ext-all.css etc.) style sheets
>
> > > > Please suggest optimal ways toi achieve this?
--~--~---------~--~----~------------~-------~--~----~
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