I also applied properties to "body" element and i noticed that the font-family property is inherited only by labels and not by buttons. Is that ok?
On Aug 11, 12:41 pm, Ice13ill <[email protected]> wrote: > Hello, i'm trying to use CSS with gwt (cascade styles). > I have this code: > > hpMain.add(hp1); > hpMain.add(vp1); > > hp1.add(lb); > hp1.add(new Label("in hp1")); > > vp1.add(new Button("B 1")); > vp1.add(new Button("B 2")); > vp1.add(new Button("B 3")); > > hpMain.setStyleName(styleMain); > vp1.setStyleName(styleVP1); > hp1.setStyleName(styleHP1); > lb.setStyleName(styleLabel); > > where > > private String styleMain = "GadgetTest1"; > private String styleHP1 = "hPanel1"; > private String styleVP1 = "vPanel1"; > private String styleLabel = "lbl"; > > CSS file: > > .GadgetTest1 .hPanel1 .lbl{ > color: blue; > > } > > .GadgetTest1 { > font-size: 11px; > font-family: Arial Unicode MS, Arial, sans-serif; > > border: 1px solid red; > width: 100%; > > } > > The label with style "lbl" has a blue color and inherits style > "GadgetTest" (set to main panel). The problem is that only the font- > family tag is recognized (the font size is still large which is > implicit) but I used firebug plugin and i saw that the label object > also inherits the font-size tag but it doesn't show on the browser (if > i modify it nothing happens). What's the problem here ? Is it a bug? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
