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.

adding simple divs

Duy Vo
1 decade ago Feb 01, 2010 4:23am

How would i go about adding a simple div element in a css layout. For instance:

public class MyLayout extends CssLayout {

public MyLayout() {
//addComponent(WHAT DO I PUT HERE?);
}

}

For instance, i would like to add just 1 div:
<div class="divClass1"></div>

I need to do it without the framework adding additional extraneous divs around my div.

Thanks!

duy

Jouni Koivuviita
1 decade ago Feb 01, 2010 8:53am
Ezra Epstein
4 years ago Jul 11, 2017 9:12am
Olli Tietäväinen
4 years ago Jul 11, 2017 10:07am