docs

Using Container Content Padding CSS Classes

For many container controls in OpenUI5, such as a Dialog or a Page, you can define whether the container should have a padding within the content area. A padding clears the area between the container layout and the controls that are displayed in the content area.

You can either choose to have no padding, a small padding, or a responsive padding that is based on the user’s screen size.

The following CSS classes for content padding are provided by OpenUI5:

The effects of these paddings will be different depending on the container that is being used:

The following list of controls support container content padding CSS classes:


Example


<Page class="sapUiResponsiveContentPadding">

You can check how our container padding classes work in the following sample Samples for sap.ui.core.ContainerPadding.

If you have to apply responsive paddings over separate parts of the control according to the control width, see Enabling Responsive Paddings According to the Control Width