Hello,
Very new to Vaadin and web apps in general. I am trying to set the left margin on a horizontal layout. (Beta 3). Nothing I do works. (Code Below) Also, is there an easy way to clear the style.css from the server? I seem to need to recreate a new theme each time to get rid of the old css settings.
Oh, one more thing, Vaadin is an awesome piece of work. I am a RCP developer for many years and have been charged with moving some apps to the web. This is amazingly easy to use for someone like me with no web experience and will be easy to maintain by java developers.
MY CODE:
private Component buildMenuBar() {
menuLayout = new HorizontalLayout();
menuLayout.addStyleName(“marginexample1”);
menuLayout.setSpacing(true);
menuLayout.setMargin(true);
My customer theme:
@import url(…/reindeer/styles.css);
.v-table-row-critical{
background: #FF0000; color: #000000;
}
.v-table-row-minor {
background: #FFFF00; color: #000000;
}
.v-table-row-major {
background: #FF8C00; color: #000000;
}
.v-horizontallayout-marginexample1 .v-horizontallayout-margin {
padding-left: 200px;
padding-right: 100px;
padding-top: 50px;
padding-bottom: 25px;
}