Container Element

With the container element you can now harness the power of flexbox CSS. The primary goal behind flex is to provide the ability to alter each items’ width, height, and order, to best fill the available space of the container. This feature will replace the current section, column, and inner section functionality of the Elementor editor.

Backwards Compatibility

If you have an existing Elementor website, or wish to use older templates from the library that use sections, do not worry. Pre-existing sections, columns, and inner sections will still continue to function as always and may be edited. In the navigator you will see that containers are marked with an icon. This allows you to make the transition to containers at your own pace. 

Tip: While it is not possible to create a new section (only containers), you may duplicate an existing section or save to your template library and import/edit as needed if your design requires it. 

Why Should Container Elements Be Used

Container elements provide more optimized solutions for nestable elements. You may add multiple widgets to the same container and align them relatively without the need for additional columns or inner sections thus improving the performance of your page.

See Example

How To Add Container Elements

The Container element is currently an experiment. To enable containers, navigate to Dashboard > Elementor > Settings > Experiments.

Adding With The New Container Option

  1. From the main editor window, click the + sign to create a new container.
  2. Select a preset Flex Layout that best suits your design
  3. Add add your content to the new layout

Tip: Additional containers may be added using the Container Widget or duplicating from the navigator.

Adding With The Container Widget

  1. From the editor panel drag a Container widget onto your page or into any existing container.
  2. Choose the Row or Column options from the direction.
  3. Easily add additional Container Widgets or duplicate from the navigator panel.  

Editing The Container Properties

Layout Controls

Container

  1. Width –  Use the slider or manually enter a value to set the desired container width in PX, %, or VW
  2. Min Height – Use the slider or manually enter a value to set the desired container width in PX or VH
  3. Direction  – From the dropdown selector choose Default, Row, Column, Revered Row or Reversed Column 
  4. Align Items – Choose your alignment from the icons Flex Start, Center, Flex End, or Stretch
  5. Justify Content – Choose the justification from the icons Flex Start, Center, Flex End, Space Between, Space Around, Space Evenly
  6. Spacing – Use the slider or manually enter values to increase or decrease the space between elements in the flex gap property
  7. Wrap – From the icons chose No Wrap, or Wrap this will define whether the items are forced in a single line (No Wrap) or can be flowed into multiple lines (Wrap)
  8. Align Content – (If wrap is enabled) Select the alignment preference from the dropdown menu between default, center, flex start, flex end, space between, space around, or space evenly.

Additional Controls

  1. Overflow – From the dropdown selector, choose Default or Hidden
  2. HTML Tag – From the dropdown menu select the most appropriate HTML tag for you container from the options
Making A Container Clickable With An “A” Tag

You may make any container clickable by first selecting the “a” option from the HTML tag above. A link option will then appear below. Enter the URL or use the dynamic options by clicking the stack icon.

Container Styles

The Container can be customized by using Style Tab 

Style Options

The following can be set for both normal and hover states.

Background
  1. Background Type – Select the background type, color, gradient, image, or slideshow
  2. Color (background): From the color picker, select the color(s) for the field
  3. Image: Click to select or upload an image or images if slideshow type is used to the media library to use as the background image of your container
Background Overlay
  1. Background Type – Select the background type, color, gradient, image
  2. Color (background): From the color picker, select the color(s) for the field
  3. Image: Click to select or upload an image to the media library to use as the background overlay image of your container
  4. Opacity: Use the slider or manually enter a value in the field
Border
  1. Border type: From the dropdown menu select between solid, double, dotted, dashed, or grooved
  2. Width (border): Enter a chosen value in the fields based on px, em, or %
  3. Color (border): From the color picker, choose the background color for your border
  4. Border Radius: Enter a chosen value in the fields based on px, em, or %
  5. Box Shadow: Click the pencil icon to open the shadow properties options.
Shape Divider
  1. Choose to display at the Top or Bottom of your container
  2. Type: Click the dropdown to choose your Shape Divider style
  3. Color: Pick a color
  4. Width: Set the width of your Shape Divider
  5. Height: Set the height of your Shape Divider
  6. Flip: Flip the direction of your Shape Divider
  7. Bring to front: Force your Shape Divider to be in front of other objects
This image has an empty alt attribute; its file name is shapedividers-567x1024.png

Advanced Tab Controls 

In the Advanced Tab you may manually set the container width and other properties. These parallel settings will override the parent container settings. 

Layout

The following advanced settings may be applied to the container

  1. Align Self – Select the icon best suited to your needs. Options are flex start, center, flex end, and stretch
  2. Order – Select from the icons to choose start, end, or custom

Adding Elements To The Container

When adding Widgets to your Containers, it will use the Direction option. Choose between Row, Column, or the Reversed options depending on your needs and layout. Use the Gap option to add space between the elements.  Use the align and justify properties for even more control of your design.

Each widget’s width can be set in the Advanced tab. In the example above all elements are now occupying one container using the Wrap option rather than using columns or inner sections thus reducing the amount of dividers and improving the performance of your page.

Widget Advanced Tab Flex Settings

When containers are enabled, each widget will have additional flex options in the Advanced tab that have been optimized.

Layout

  1. Margin: Enter a value in the field based on PX, EM, %, or REM
  2. Padding: Enter a value in the field based on PX, EM, %, or REM
  3. Width: Use the slider or manually enter a value to set the width of the widget based in PX, %, or VW 
  4. Align Self – Select the icon best suited to your needs. Options are flex start, center, flex end, and stretch
  5. Order – Select from the icons to choose start, end, or custom
  6. Position: Use the dropdown menu to select from default, absolute, or fixed. If either Absolute or Fixed are selected, the following options also become available.
    1. Horizontal Orientation: Sets the horizontal reference point for the absolute positioning, with choices of either Start or End.
    2. Offset: Changes the horizontal reference point by the amount of the offset
    3. Vertical Orientation: Sets the vertical reference point for the absolute positioning, with choices of either Start or End.
    4. Offset: Changes the vertical reference point by the amount of the offset
  7. Z-index: Set the Z-Index. Learn more about Z-Index
  8. CSS ID: Set a CSS ID for your section
  9. CSS Classes: Set CSS Classes for your section

Share it on social networks

Share on facebook
Share on twitter
Share on linkedin
Share on email
Was this article helpful?

Get Started With Elementor Today

Join millions of professionals who use Elementor to build WordPress websites faster and better than ever before

On this page