Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Plugin how-tos · Info

Elementor Container Settings Explained: What Each Option Does

Elementor Container Settings Explained: What Each Option Does

Short answer

Elementor container settings control layout, styling and behavior. The Layout tab sets Flexbox or Grid, content width, direction, alignment, gaps and wrap. The Style tab handles backgrounds, borders and shape dividers, and the Advanced tab covers margin, padding, position, CSS classes and responsive visibility.

Key takeaways

  • Choose Flexbox for one-direction layouts and Grid for rows and columns.
  • Boxed width comes from Site Settings unless you change it.
  • Gaps are cleaner than margins for spacing items.
  • Set the HTML Tag to give pages a clear semantic structure.
  • Many settings can differ on desktop, tablet and mobile.
  • Fewer nested containers keep pages lighter and faster.

What are Elementor container settings?

Container settings are the options that control a container's layout, size, spacing, background and behavior, split across the Layout, Style and Advanced tabs in the Elementor panel.

Containers replaced the older section and column structure in Elementor. One container can hold widgets or other containers, which makes layouts lighter and more flexible.

Click the handle at the top of a container, or select it in the Navigator, to open its settings in the left panel. The three tabs then show every option for that container.

If you are new to the editor itself, start with our guide on how to use Elementor in WordPress. This page explains what each container option actually does.

How do Flexbox and Grid containers differ?

A Flexbox container lines items up in one direction, either a row or a column, while a Grid container places items in rows and columns at the same time.

You choose the type under Container Layout at the top of the Layout tab. Flexbox is the default and suits most sections, such as a hero with text beside an image.

Grid works better for card layouts, image grids and pricing tables where every item should line up in both directions.

Both are based on standard CSS. MDN's basic concepts of flexbox is a good primer if the terms below are unfamiliar.

NeedBetter choice
Text beside an imageFlexbox row
Stacked content in one columnFlexbox column
Equal cards in rows of threeGrid
Items that wrap onto new lines naturallyFlexbox with wrap
Strict rows and columns on all devicesGrid

What do the Content Width and size options do?

Content Width chooses between Boxed, which limits content to a set width, and Full Width, which lets content stretch across the screen; Width and Min Height then fine-tune the size.

Boxed keeps the container's content inside a maximum width. The default comes from your Site Settings, under Layout, so every boxed container matches.

Full Width lets the content run edge to edge within its parent. It is common for hero sections and full-width image strips.

Width sets how wide the container itself is. Use percentages for flexible layouts, such as two inner containers at 50 percent each.

Min Height sets the smallest height the container can have. Viewport height units are handy for a hero that fills the screen, but check the result on phones.

Our explainer on Elementor Pro site settings shows where the default content width lives.

What do the Items settings control in a Flexbox container?

The Items group sets the direction items flow, how they are spaced along that direction, how they line up across it, the gap between them and whether they wrap.

Direction offers Row, Column, Row reversed and Column reversed. Row places items side by side and Column stacks them.

Justify Content spaces items along the main direction. Options include start, center, end, space between, space around and space evenly.

Align Items lines items up on the other axis. In a row, it controls vertical alignment, such as top, middle or bottom.

Gaps adds space between items without using margins. It is the cleanest way to space cards or buttons evenly.

Wrap decides whether items move onto a new line when they run out of room. Turn it on for rows of tags, logos or buttons that should flow naturally on small screens.

Elementor's own help article on container layout settings shows each option with screenshots.

What do the Grid settings control?

Grid settings set the number of columns and rows, the gap between cells, the auto flow direction and how items align inside each cell.

Columns and Rows decide the grid shape. You can set different numbers for desktop, tablet and mobile, for example three columns on desktop and one on phones.

Gaps set horizontal and vertical spacing between cells. Auto Flow decides whether extra items fill the next row or the next column.

Justify Items and Align Items position content inside each cell. They are useful when cards contain different amounts of text.

MDN's grid layout guide explains how these properties work in plain CSS.

What are the Additional Options in the Layout tab?

Additional Options cover Overflow, which can hide content that spills outside the container, and HTML Tag, which sets the semantic element the container outputs.

Overflow set to Hidden clips anything that sticks out. It can fix a stray horizontal scroll bar, but it can also cut off shadows and dropdowns.

HTML Tag lets the container output elements like header, main, section, article, aside, footer or a link instead of a plain div.

Choosing the right tag helps screen readers and gives your page a clearer structure, as the W3C guidance on landmark regions explains. Use one main per page and real header and footer tags in your theme builder templates.

When a container is set to a link, the whole box becomes clickable. Avoid putting other links or buttons inside it, since nested links are invalid HTML.

What can you change in the Style tab?

The Style tab controls how the container looks: background, background overlay, border, border radius, box shadow and shape dividers.

Background can be a color, a gradient, an image, a video or a slideshow, depending on your version. Each can have hover and responsive variations.

Background Overlay sits on top of the background. It is often used to darken an image so white text stays readable.

Border adds a line, rounded corners and a box shadow. This is how most card designs are built.

Shape Divider adds a wave, curve or angle to the top or bottom edge. Use it sparingly, since it adds extra markup to every container.

Background videos and slideshows are heavy on mobile. Our guide to speeding up Elementor covers lighter alternatives.

What do the Advanced tab settings do?

The Advanced tab handles spacing, position, stacking, custom IDs and classes, motion effects, responsive visibility and, in Pro, custom attributes and CSS.

Margin adds space outside the container and Padding adds space inside it. Both can have different values on each device.

Align Self, Order and Size apply when the container sits inside another flex container. They control how this item aligns, where it appears in order and whether it grows or shrinks.

Position can be set to absolute or fixed, and Z-Index controls which element appears on top. Use these carefully, since absolute items can overlap content on smaller screens.

CSS ID and CSS Classes let you target the container with anchors or custom CSS. A CSS ID is also how you build one-page menu links.

Responsive lets you hide the container on desktop, tablet or mobile. Hidden elements still load in the page, so do not rely on this for performance.

The Advanced tab help article lists every option, including Motion Effects and Transform.

How do responsive container settings work?

Settings with a small device icon can hold different values for desktop, tablet and mobile, so you can change direction, width, gap and padding per screen size.

A common pattern is a row on desktop that switches to a column on mobile. Set Direction to Row, switch to mobile view, then set Direction to Column.

Mobile values inherit from larger screens until you change them. That keeps work down, but it also means a desktop change can affect mobile if you never overrode it.

Elementor explains breakpoints and device editing in its mobile editing guide.

Which container settings matter most for performance?

Fewer nested containers, light backgrounds and limited motion effects keep pages fast, because every extra container and effect adds markup, CSS or JavaScript.

Containers are already leaner than old sections and columns. You lose that benefit if you wrap every widget in three layers of containers.

Use Gaps instead of margins on each widget, and Grid instead of many nested rows. Both produce cleaner layouts with fewer elements.

Elementor's performance options are covered in our explainer on Elementor performance settings.

Can you save container settings for reuse?

Yes, you can save a styled container as a template, or copy and paste its style onto another container, so you do not rebuild settings each time.

Right-click a container and choose Copy, then right-click another one and choose Paste style. Only the styling moves across, not the content.

To reuse a whole layout, right-click and save it as a template. Our guide on how to use Elementor templates explains the template library.

For site-wide consistency, set colors and fonts in Global settings instead of styling each container by hand.

You can read more about the free plugin on the Elementor page at WordPress.org.

Frequently asked questions

How do I change the width of a container in Elementor?

Select the container, open the Layout tab and choose Boxed or Full Width under Content Width. Then adjust the Width value. Boxed containers use the default content width from Site Settings unless you set a different width on that container.

How do I make Elementor container items stack on mobile?

Select the container, switch the editor to mobile view, and set Direction to Column on the Layout tab. The desktop layout keeps its row direction while phones show the items stacked in a single column, one after another.

What is the difference between padding and gap in Elementor?

Padding adds space inside the container, between its edges and its content. Gap adds space between the items inside the container. Use padding for breathing room around the whole box and gap for even spacing between cards, buttons or widgets.

Why does my Elementor container cause horizontal scrolling?

An item inside is wider than the screen, often because of a fixed width, a large negative margin, an absolutely positioned element or a wide image. Check widths and margins in mobile view. Setting Overflow to Hidden can hide the symptom, but fixing the wide element is better.

Should I use Flexbox or Grid containers in Elementor?

Use Flexbox for content that flows in one direction, like a row of text and image or a stacked column. Use Grid for layouts that need strict rows and columns, such as card grids, galleries or pricing tables. You can nest one type inside the other.

Sources

  1. Define container layout Elementor Help Center
  2. Define advanced settings in Flexbox containers Elementor Help Center
  3. Understanding how Flexbox containers work Elementor Help Center
  4. Basic concepts of flexbox MDN Web Docs
  5. Basic concepts of grid layout MDN Web Docs
  6. Elementor Website Builder WordPress.org

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.