Hi
I want to customize the color and font size of the StackPanel item, so I
defined the following style:
.mymenu .gwt-StackPanelItem {
color: blue;
font-size: small;
}
Then I add the above style and keep the rest of the standard CSS properties:
StackPanel panel = new StackPanel();
panel.addStyleName("mymenu");
The problem is this only works if I include the CSS in the module XML file.
If I include the CSS in the HTML host page, the style is overridden by
standard.css.
Both methods above generate the same HTML shown below:
<table class="gwt-StackPanel mymenu" cellspacing="0" cellpadding="0"
style="width: 20%; height: 100%;">
<tbody>
<tr>
<td class="gwt-StackPanelItem gwt-StackPanelItem-first
gwt-StackPanelItem-selected" height="1">
<div>Administration</div>
</td>
</tr>
...
</table>
Do you know why including the CSS in the module XML or HTML host page
affects the output?
--
Hez