title: How to make the font-size of the caption of a Vaadin Label smaller?
body: <p>I know how to add styles in Vaadin and I've done multiple stylings in my css and added the style in the code succesfully, but this one eludes me.</p>
  
  <p>I tried the following:</p>
  
  <p>in the css I have the following style:</p>
  
  <pre><code>  .v-caption-mystyle .v-captiontext {
      font-size: 13px !important;
      font-weight: bold;
      color: $dark-grey;
    }
  </code></pre>
  
  <p>In the code I try to set it in two following ways and nothing happens:</p>
  
  <pre><code>postalCodeLabel= new Label(currentAddress.getPostalCode());
  postalCodeLabel.setCaption("Postal code"));
  postalCodeLabel.addStyleName("v-caption-mystyle");
  
  postOfficeLabel = new Label(currentAddress.getPostOffice());
  postOfficeLabel.addStyleName("v-caption-mystyle");
  postOfficeLabel.setCaption("Post office"));
  </code></pre>
  
  <p><strong>EDIT:</strong> Vikrant Thakur's answer works.
  In my case also this worked:</p>
  
  <pre><code>  .v-caption-invoiceaddress-label-caption .v-captiontext {
      font-size: 13px !important;
      font-weight: bold;
      color: $dark-grey;
    }
  </code></pre>
  
  <p>And in the Java:</p>
  
  <pre><code>postalCodeLabel = new Label(currentAddress.getPostalCode());
  postalCodeLabel.setCaption("myCaption"));
  postalCodeLabel.addStyleName("invoiceaddress-label-caption");
  </code></pre>