java - Alignment of Horizontal Layout in Vaadin -
i have mainlayout absolute layout , within there horizontal layout want allign in center , when screen resolution decreased horizontal layout should move until minnimum widht without decreading own width.
first java part, set:
absolutelayout.setsizefull(); absolutelayout.addstylename("full-size");
and
horizontallayout.setwidth("90%"); horizontallayout.addstylename("horizontalcontainer");
then in css:
.full-size .v-absolutelayout-wrapper:first-child { width: 100%; }
and
.horizontalcontainer{ margin: 0 auto; display: block; min-width: 800px; }
java css vaadin7
No comments:
Post a Comment