Hi Gleb
The objective is to make the screen responsive to different screen size. Therefore I won’t use more than 1 column since it will not fit in small devices. Rather many forms, depending on how many components are in the screen.
I have used cssLayout as parent container of the forms (in legacy screen FieldGroup) so that those small forms are rearranged within the cssLayout automatically based on screen size. There I need space between forms. Thanks for additional inputs, if any and how that can be done.
java.lang.IllegalArgumentException: Incorrect CSS string: csslayout_margin_style
at com.haulmont.cuba.web.gui.components.HtmlAttributesImpl.applyCss(HtmlAttributesImpl.java:99)
at com.haulmont.cuba.gui.xml.layout.loaders.AbstractComponentLoader.loadCss(AbstractComponentLoader.java:220)
at com.haulmont.cuba.gui.xml.layout.loaders.CssLayoutLoader.loadComponent(CssLayoutLoader.java:49)
at com.haulmont.cuba.gui.xml.layout.loaders.ContainerLoader.loadSubComponents(ContainerLoader.java:37)
As an alternative, used the css code directly to the cssLayout as follows, now there no error but getting no margin.