I'm facing some difficulty with styling a stackpanel in my app. I've tried different methods, but none seem to work as expected.
The first method involves applying CSS directly to the stackpanel elements:
.gwt-StackPanel .gwt-StackPanelItem {
font-weight: normal;
font-size: 8pt;
width: 100%;
background: green;
}
.gwt-StackPanel .gwt-StackPanelItem-selected {
background-color: red;
}
However, even after adding these styles, the default styles still show up when I test it in Firefox.
The second method I attempted was encapsulating the styles in my CSS file and using the @external attribute. This caused the GWT compiler to raise an issue with obfuscated styles. Despite resolving this, the changes still don't reflect in the stackpanel's appearance.
If anyone has any insights on how to successfully style a stackpanel in GWT, I would greatly appreciate it!