• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Genesis Blocks

Genesis Blocks

Create effective content faster.

  • Need Help?
You are here: Home / Container Block

Container Block

The Container block allows you to wrap several individual blocks inside a parent container which can help you create differently styled sections of content on your posts and pages.

For example, you can add a full-width container with a background image or background color that stretches to the left and right edges of the screen and then add columns, text, and images inside of it.

Table of Contents:

  • Container alignment
  • Container Options
  • Background Options
  • Advanced settings

Container alignment

After you’ve added the container block to the post or page,  you can choose its alignment (Align Center, Wide Width, or Full Width) as shown in the example below.

This setting determines whether the container is displayed narrowly in the center of the page or stretches all the way to the left and right sides of the page.

Alignment settings for the Container block

Click image to enlarge

Next, you can click each of the options in the editor sidebar to configure all the settings for the container as shown and described below.

  • Container Options
  • Background Options
  • Advanced Settings
Settings in the Container block

Click image to enlarge

Container Options

Container options in the Container block

Click image to enlarge

  1. Padding: The padding refers to the amount of space displayed around the inside edges of the container.
  2. Margin: The margin refers to the amount of space displayed around the outside edges of the container.
  3. Inside Container Max Width (px): Choose the width of the content inside the container. This will allow the container (and background, if applicable) to stretch to the full width of the page while restricting the content inside the container to the selected width.

Background Options

Background options in the Container block

Click image to enlarge

  1. Background Image: Add a background image that will be displayed behind the content that’s added to the parent container, if desired.
  2. Image Opacity: Adjust the opacity (or transparency) of the background image. The lower the number, the more transparent the image will be. This setting makes it easier to read text if the background image has a lot of busy detail on it. This option only shows if a background image is added above.
  3. Background Color: Click the colored circles to select a pre-defined background color. Or click Custom Color to select your own. If you do not add a background image above, this color will be displayed as a solid background color. If you do add a background image, this color will be overlaid on top of the image and its opacity (or transparency) will be determined by the Image Opacity setting above. For example, when the image opacity is set to a low number, more of the background color will be seen (because the image is more transparent).

Advanced settings

Advanced settings in the Container block

Click image to enlarge

  1. Additional CSS Class(es): You can add one or more CSS class to customize the appearance of the container. After adding the class name(s) here, you can enter your custom CSS code in Appearance > Customize > Additional CSS.

Primary Sidebar

Getting Started

  • Install Genesis Blocks
  • Install Genesis Blocks Pro
  • Update Genesis Blocks Pro
  • Working with Blocks
  • Responsive Typography

Layout Blocks

  • Advanced Columns Block
  • Container Block
  • Layouts Block

Styling Blocks

  • Drop Cap Block
  • Spacer Block

Call to Action Blocks

  • Button Block
  • Call-to-Action Block
  • Email Newsletter Block

Content Blocks

  • Accordion Block
  • Device Mockup Block
  • Notice Block
  • Portfolio Block
  • Post and Page Grid Block
  • Pricing Table Block
  • Profile Box Block
  • Sharing Block
  • Testimonial Block

Advanced Options

  • Block Permissions
  • Reusable Blocks

Tutorials & Code Snippets

  • Tutorials
  • Code Snippets

Resources

  • Changelog
  • How to migrate from Atomic Blocks to Genesis Blocks
  • Migrating from Atomic Blocks Pro Beta
  • Support

© 2013–2025 WPEngine, Inc. All rights reserved. WP ENGINE®, VELOCITIZE®, TORQUE®, EVERCACHE®, and the cog logo service marks are owned by WPEngine,Inc.
1WP Engine is a proud member and supporter of the community of WordPress® users. The WordPress® trademarks are the intellectual property of the WordPress Foundation, and the Woo® and WooCommerce® trademarks are the intellectual property of WooCommerce, Inc. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation or WooCommerce, Inc. WP Engine is not endorsed or owned by, or affiliated with, the WordPress Foundation or WooCommerce, Inc.