Liferay adds divs with the classes 'portlet' and 'portlet-content' around all portlets.
Those classes have margin and padding applied. Of course this breaks the layout of websites that use Liferay.
You could at least namespace the styles to '.controls-visible'. So they only break the layout for admins and not for everyone.