How to set up div's properties

Sounds like you’re missing on some details on how Vaadin 8’s layouting engine works. What you’re probably looking for is the expandRatio property; take a look at the chapter “expanding components” here: https://vaadin.com/docs/v8/framework/layout/layout-orderedlayout.html