How to add a border to a layout

Hi all,

Here is what i did in order to add a border to a vertical layout, but it doens’t work :

1 / into WebContent/VAADIN/themes/
eric_theme
/style.css, i added the following code :
@import “…/reindeer/styles.css”;
.
mystyle
{
border: solid;
}

2 / setTheme("
eric_theme
“);
3 /
VerticalLayout layoutMenu = new VerticalLayout();
layoutMenu.addStyleName(”
mystyle
");

4 / Firebug says :

Do you see where i am wrong ?

Eric

Try setting the CSS to something like “border: 1px solid red;” It seems that you have only specified the border type, not the width or color.

Hope that helps!