Vaadin 13 component alignment

Hi,
I have a menubar that has a horizontal layout and it contains 4 RouterLinks and a single Label within it. I would like to group the RouterLinks and have them left justified. I would like the label to right justify. Any thoughts on the appropriate way to approach this? I appreciate your thoughts and help.

Regards,
Tony

Hi,

for example, you can do it like this:

            HorizontalLayout horizontalLayout = new HorizontalLayout();
            horizontalLayout.setWidth("100%");
            RouterLink routerLink = new RouterLink("foo", SecondView.class);
            RouterLink routerLink2 = new RouterLink("bar", SecondView.class);
            RouterLink routerLink3 = new RouterLink("baz", SecondView.class);
            horizontalLayout.add(routerLink, routerLink2, routerLink3);
            Span label = new Span("Some text");
            label.getElement().getStyle().set("margin-left", "auto");
            horizontalLayout.add(label);

Olli, That did it. Thank you!