I am a newbie to gwt...I need to change the font size of static text item.I tried to do it by using the method " setTextBoxStyle("h1") " as below in my "GwtProj.java" file
In the above code,"h1" means base css class ...where it looks like below in my "GwtProj.css" file.
I haven't altered anything in my "GwtProj.gwt.xml" file.should i do any modifications overthere...?
Where did I go wrong in the procedure above...?please help...
Code:
StaticTextItem heading=new StaticTextItem(); heading.setDefaultValue("Enter School Information"); heading.setTextBoxStyle("h1");
Code:
h1 { font-size: 2em; font-weight: bold; color: #777777; margin: 40px 0px 70px; text-align: center; }
Where did I go wrong in the procedure above...?please help...
Comment