Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to style the caption of a Label in css?

Vesa Tamminen
5 years ago Feb 01, 2017 8:53am
Olli Tietäväinen
5 years ago Feb 02, 2017 6:43am
Vesa Tamminen
5 years ago Feb 02, 2017 11:03am
Olli Tietäväinen
5 years ago Feb 02, 2017 11:09am

Ah, yeah, I should have looked at your code more closer instead of writing my own. The caption is not actually under the label's main element (which you can target directly with .[your style name], but it's a separate div, so you need to use the .v-caption-[your stylel name] to access the caption element.

Something like this:

[layout slot]
 [caption]
   [captiontext]
 [label]
[/layout slot]
Itherial Systems
3 years ago Oct 24, 2018 4:17pm