Location of css file in a GWT project -
i have css file named sample.css contain below contents.
.bandit-report{ margin-left: 20px; } .bandit-report1{ margin-left: 50px; } i have abcd.gwt.xml have made below entry css file
<stylesheet src='sample.css' /> i set style name using setstylename(string) method. margin-left changes not getting reflected. dont know place sample.css file. have place both abcd.gwt.xml , sample.css in same directory.
kindly help.
relative paths in <stylesheet> in gwt.xml files relative "module base url" (returned gwt.getmodulebaseurl() on client-side code; folder gwt generate nocache.js file , else). having file output in directory easy putting in public path, default public subfolder of gwt module (next client subpackage). it's worth noting public paths inherited modules <inherit>; how gwt's built-in themes work.
if put stylesheet in war folder, shouldn't inject gwt.xml, should rather load <link rel=stylesheet> in html host page.
Comments
Post a Comment