css - Apply styles to GWT widgets -


i have started explore gwt, , i'm bit confused different ways of applying styles gwt widgets.in gwt docs, there 4 ways can override default style of widget,

1) using tag in host html page.(deprecated) 2) using element in module xml file.(deprecated) 3) using cssresource contained within clientbundle. 4) using inline element in uibinder template.

suppose have css file in package say, com.abc.xyz.styles.css .and file has following contents,

/**the panel itself**/ .gwt-tablayoutpanel {     border: none;     margin: 0px;     padding: 0px; } /**the tab bar element**/ .gwt-tablayoutpanel .gwt-tablayoutpaneltabs {     background-color: #f4f4f4 !important; } /**an individual tab**/ .gwt-tablayoutpanel .gwt-tablayoutpaneltab {     background-color: #6f6f6e !important; }  .gwt-tablayoutpanel .gwt-tablayoutpaneltab-selected {     background-color: white !important; } /**an element nested in each tab (useful styling)**/ .gwt-tablayoutpanel .gwt-tablayoutpaneltabinner {     font-family: arial !important; }  /**applied child content widgets**/ .gwt-tablayoutpanel .gwt-tablayoutpanelcontent {     border: none;     margin: 0px;     overflow: hidden;     padding: 15px; } 

how inject css file ? how can done using 3rd , 4th option of styling mentioned above?.

you can add css file host page. can use full power of css selectors. preferred method of using css in gwt:

what best strategy structure css in gwt?


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -