1

E.g., in the example below, is it possible to get rid of all the class names except my own, w-grid? Or at least reduce the number?

<div class="v-csslayout v-layout v-widget w-grid v-csslayout-w-grid
root_Z_Template v-csslayout-root_Z_Template v-has-width v-has-height"
style="position: absolute; width: 100%; height: 100%;" id="root_Z_Template">
Cœur
  • 37,241
  • 25
  • 195
  • 267
Reto Höhener
  • 5,419
  • 4
  • 39
  • 79
  • Perhaps this thread is of use. https://stackoverflow.com/questions/4060405/is-it-possible-to-reference-one-css-rule-within-another – Ballard Sep 10 '17 at 10:31
  • Why do you want to replace them with your style only? Have a look at the method `setPrimaryStyleName`, maybe this is sufficient for you. However, defining `Grid` styles on your own feels like a lot of effort. – Steffen Harbich Sep 11 '17 at 08:38
  • @SteffenHarbich It is a custom component based on `CssLayout`, the Vaadin style names are not relevant to it. – Reto Höhener Sep 11 '17 at 11:50

0 Answers0