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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Table caption center align
Table x = new Table("Table Caption");
The "Table Caption" will be on left side of table, is there a way to make it on center of table.
I tried the following style, the text was changed, but the align won't
x.setStyleName("centertable");
.v-caption-centertable .v-captiontext {
text-align:center;
font-weight: bold;
float:right;
}
Thank you in advance!
The following should work. Did you tried it?
.v-caption-centertable {text-align: center;}
The above snippet work for me on Valo theme. See attached screenshot.
Is that the result you want?