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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
DateField - css style
How to set the style of the textfield of DateField ?
Where the user types in the date in the textbox of the DateField
I tried using setStyleName("mybold")
where the css mybold is font-weight: bold;
but it does not work
Last updated on
Try looking at the DOM tree with a tool like Firebug. With it you will see which DOM elements actually got your css, there may be a child div that overrides your font-weight attribute, so you might have to adjust your css to apply to that exact div.
Last updated on
Use the following selector:
.mybold .v-datefield-textfield {
font-weight: bold;
}
Last updated on
You cannot reply to this thread.