I’m having a problem with a DIV that appears in my source code that doesn’t have a CSS class to change,
and it puts a Margin in the site. Does anyone know how to remove this margin?
It is a 18px margin, the DIV element is selected in this code.
In the picture you can see a margin, and in the Firebug there is the margin:18px.
Picture from Margin
That’s the margin of the main layout inside your main window. All Windows and Panels have a VerticalLayout inside them by default, inside which all contained components are added (the window or panel just acts as a proxy).
Use
((VerticalLayout) mainWindow.getContent()).setMargin(false) to remove it.