in one of my apps, i created a footer :
public Footer(){
hl.setHeight("120px");
hl.setWidth("100%");
hl.setMargin(true);
hl.setSpacing(true);
VerticalLayout contact = new VerticalLayout();
Label contact_title = new Label("Contact");
Label mail = new Label("<a href='mailto:contact@flavien-normand.fr'>Par email</a>",ContentMode.HTML);
contact.addComponents(contact_title,mail);
hl.addComponent(contact);
}
where hl = new HorizontalLayout();
This footer is included in my main page (absoluteLayout). But the problem is i don't see the difference between my main content and the footer, mainly because it's the same background color. SO i wanted to change the footer's background Color, here is how i tried :
adding hl.addStyleName("backColorGrey");
in the code and .backColorGrey{background-color:#ACACAC} in my theme .scss, i tried the same with .v-horizontallayout-backColorGrey as class name in css.
I also tried with JavaScript.getCurrent().execute("$('.backColorGrey').css('background-color', 'grey')");
but nothing to do, the color remains the same, it never changed.
to try javascript, i tried to do an alert : JavaScript.getCurrent().execute("alert('Hi SO!')");
but it did not work, and i wonder why.
So now, how can i do to change my hl's background color?