Margin values for layouts ?

How to change margin values for layouts ?

If you want to change a specific layout’s margin you can add a style name to it,

layout.addStyleName("margin_5px");

and you need to add this to style file;

.margin_5px{
	margin: 5px;
}

Thank you ! Is it possible to change only side-specific (e.g. top) margin value ?

Vitalii Lipovetskii:
Thank you ! Is it possible to change only side-specific (e.g. top) margin value ?

yes, you can use margin-top, margin-left, margin-right or margin-bottom;

.customstyle{
	margin-top: 5px;
}