Creating a Call to Action Section using Flexbox Containers

The Call to Action is a basic building block of many websites. This is generally an important announcement or offer. It may also be used in collecting a subscription. The button may be linked to another page or, if you are a Pro user, use dynamic tags to open a popup. 

Getting started

Begin by creating a new Page on your website or editing an existing one.

Add a container

  1. Add a new Container by clicking on the + icon on your screen
  2. For the Container width, the boxed width is used in the example but a Full Width may be used if desired
  3. From the Style Tab, you may give your Container a background color or other style features. If you have stored global colors, these can be quickly applied to save you time
  4. In the Advanced Tab, give your container some padding (example: 21PX)

Add the content

  1. From the Widget Panel, drag and drop a Heading widget to your Container and edit the content
  2. Next, drag a Button widget under the heading widget and link it if desired before proceeding.

Use the flex properties for alignment

  1. Select and Edit the Container
  2. Click the Items accordion to expand it
  3. Change the Direction to Row. This will allow the widgets to be horizontally positioned
  4. Use the Align Items property to Center the widgets vertically
  5. You may now use the Justify Content property to set the space between the Widgets

Responsive settings

Click to open the Responsive mode from the bottom of the Widgets panel. Select the available viewports and make the needed changes. For tablets you may find only minor changes are needed.

For the mobile viewport, you may wish to change the Container direction to Row. You may then use the Align Items property to change the widgets to best fit your design

Additional content

Now that you have the foundations already, you may also need additional content in your Container. This may be achieved by adding a Child-Container.

  1. Drag a Container widget from the Widget Panel to your Parent Container
  2. Drag the Heading widget to the inside the Child Container
  3. Edit the Layout Tab properties of the Child-Container
  4. Change the Width dropdown to Full Width
  5. Use the slider to adjust the width of your Container it will still respect the Justify Content properties of the Parent Container
  6. Use the Items properties to align the content to best fit your design if needed
  7. The Gap function may also be used to provide space between your widgets

Next steps

Check out some other layouts you can create with containers:

Creating an Intro Section using Flexbox Containers

Creating a Hero Section using Flexbox Containers

Creating A Services Section using Flexbox Containers

Creating a Hero Image Gallery using Flexbox Containers

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