Adjusting the container’s size and behavior

Last Update: September 21, 2023

Introduction

You can adjust the container’s size and behavior by navigating to the Layout tab > Container section.

To learn about styling the container, click here.

a871c42c 7532 4e09 a18e b99ab4de1d3f Adjusting the container's size and behavior 1

Adjusting the Container’s Size

You can define the container’s height and width using the following controls:

Content Width

33894f51 97bf 44e5 bab6 c94cb2105b98 Adjusting the container's size and behavior 3

The Content Width option controls whether the elements in the container will be boxed, or take up the entire width of the container.

Boxed Container

If Boxed is selected, the contained elements will appear in a box that takes up only a portion of the container itself. You can define the size of this box using the Width slider, located under the Content Width option.

53f3a031 7035 4cee afa5 26426e29c4a3 Adjusting the container's size and behavior 5
Boxed Container – Backend
image 3 Adjusting the container's size and behavior 7
Boxed Container – Frontend

Note: This is the default setting when creating new containers.

Full Width Container

If Full Width is selected, the contained elements will take the entire size of the container with no margin.

e0c5f2a9 cb10 425b a7ea b66dcd11300f Adjusting the container's size and behavior 9
Full-Width Container – Backend
image 4 Adjusting the container's size and behavior 11
Full-Width Container – Frontend

Note: By default, Boxed and Full width containers will stretch on the available space according to their placement in the layout. If the container is a parent, it will occupy the full viewport width. If the container is nested in a parent container, the nested will take the full parent’s content width.

Boxed vs. Full Width

IfUse
You want to adjust the width of the content inside the container but not the container’s widthBoxed, and adjust the container’s content width using the Width control.
You want to adjust the container’s width but not the container’s content widthFull Width, and adjust the container’s width using the Width control.
You want to adjust the container’s width and the container’s content widthFull Width, adjust the container’s width using the Width control, and adjust the container’s content width with padding in the Advanced tab.

Width

6a669742 9e34 4455 9e59 c1d09be8c7c4 Adjusting the container's size and behavior 13

Control the container’s width or the container’s content width in pixels (PX), percentage (% ), or Viewport Width (VW).

This control applies a different effect depending on whether Content Width is set on Boxed or Full Width.

When Content Width is Boxed

When Content Width is set to Boxed, the Width control allows adjusting the width of the content inside the container (the box).

e5d45a32 416e 4c44 aeb5 9bb11dbd8bb1 Adjusting the container's size and behavior 15
Adjusting the Width slider when Content Width is Boxed

When Content Width is Full-Width

When Content Width is set to Full-Width, the Width control allows adjusting the width of the container itself.

999d9f21 3f37 434d a299 a22a9ff1c8e2 Adjusting the container's size and behavior 17
Adjusting the Width slider when Content Width is Full-Width
When Content Width is set to…Width will
BoxedControl the size of the box inside the container
Full WidthControl the size of the container itself

Minimum Height

df72cb3c 4fd3 4d30 83ec 42fd15fe3424 Adjusting the container's size and behavior 19

The Minimum Height slider controls the minimum height of the container’s content in pixels (PX) or in Viewport Height (VH).

83607b8f 613a 48f2 a8bf 584f9af0c6e3 Adjusting the container's size and behavior 21

Note: Setting the value of Min Height to 100VH would set the container height to the viewport height. This setting can be set individually for responsive layouts.

Adjusting the Container’s Behavior

You can define the container’s behavior using the following controls:

Overflow

b2aa6cf9 3ef6 462f 9859 c1f4ae8323e4 Adjusting the container's size and behavior 23

The Overflow option controls if the content of a container does not fit within the viewport, should the overflowed content be hidden, or visible, causing horizontal scrolling.

Default

Default allows the overflow of items outside the container.

d7b968f0 181c 4c30 9ce6 3142ec83992c Adjusting the container's size and behavior 25

Hidden

Hidden hides the overflowing items. The overflowing items are not accessible.

aed494cf dea0 4350 a5da 029ff80d6332 Adjusting the container's size and behavior 27

Auto

Auto creates a scrollbar when content overflows to keep the items accessible. This setting allows for swiping across the content in mobile views.

de7e3622 1421 4473 852a 3332f6769c14 Adjusting the container's size and behavior 29

HTML Tag

Wrap an entire container from the dropdown menu by selecting the most appropriate HTML tag for your container.

Note: HTML Tags are essential for SEOs. As the container is defined higher in the DOM hierarchy, the easier and more important its content is regarded by search engines.
This setting can be set individually for responsive layouts.

Tip: You can make a container clickable by selecting the “a” HTML tag. 

On this page

Share this article