Label and XHTML

Hi! I have used XHTML like this

Label label= new Label(“

  • ” + something.getName() + “
”, Label.CONTENT_XHTML);

and it is good in every other ways, but I wouldn’t need spacing there at all. Is there any way I can get the spacing off? Or any other ways to get the indent and small ball?

The spacing should be off when the list starts and ends. So before the list and after it there shouldn’t be any spacing.

Heli

Generally, Vaadin layouts handle the component spacing, and to disable that you would have to call setSpacing(false) for the containing layout.

However, I guess that in this case the space comes from the UL. The right way to turn of spacing for UL would be to create a theme / css and something like this:

.v-label ul {
    margin:0;
    padding:0;
}

And maybe adding a style name to the label like label.setStyleName(“mystyle”) and matching that in CSS:

.mystyle ul { ... }