I ran into trouble when I tried to center a label in a VerticalLayout, after a bit of searching I found out that I only had to give the label an undefined width, since it by default has the size of 100%. e.g. VerticalLayout layout = new VerticalLayout(); layout.setSizeFull(); // width: 100%; height: 100%; … Continue Reading