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

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

Create <div>simple text</div> with no styles or classes?

Jarek Toro
7 years ago Mar 16, 2016 11:52pm
Jonas Ohlsson
7 years ago Mar 17, 2016 12:06am

A Label is a div with a simple text inside :)
use setWidthUndefined to get rid of the width of it.
It does get a class-attribute as well, but else it is quite clean. Is that good enough? :)