Spring Sale: Our new update is live! Save 30% on Pro and Pro Unlimited for a limited time.


Want to separate a headline from its body using a horizontal line? This is only one of the uses of the Line Element in Cornerstone / Pro Builders. In this article we'll dive in on how to add and configure this element to your liking.

  1. Line Setup
  2. Design
  3. Customize
  4. Demo
  5. Summary

You can think of many ways to use lines into your website. However, one of the most common uses of it is to separate texts from each other. One example of such use is separating a headline from its body as shown below.

Line Example

To add the Line element, simply search "line" and select Line.

Line Element Content Builder

Line Setup

When you inspect a Line element, you'll see the following settings: Direction, Base Font, Width & Max Width, Size and Color & Style.

Line Setup


Horizontal is the default value. If this is the selected option, the Line Element will be positioned, well, horizontally.

Line Direction Example

If you select Vertical, then the line will be standing up. It's seldom that you will be using Vertical in Cornerstone / Content Builder, though it's good to point out that this option is available to you. The usual and practical usage of the vertical option is in Pro's Header and Footer Builders.

Line Direction Header Example

Base Font Size

If you will be using the EM unit for the Size field, then the value you will be setting for the Base Font Size field will influence how the Size field will calculate the value. Let me explain with an example:

If you set the value of 2 EM for the Base Font Size and set Size to 2 EM also, that Line element will be thicker than if the value of the Base Font Size is just 1 EM. If the Base Font Size is 20 PX and the Size is 1 EM, that would be thicker than if the value of Base Font Size is just 10 PX.

If you use either PX or REM for the Size field, then the value you set for Base Font Size will be ignored.

Width & Max Width

Width is the actual width of the Line element. The width cannot go beyond the Max Width. Max Width is useful for handling responsiveness of an element.


This sets the thickness of the Line Element.

Color & Style

You can set the color of the Line and its style. Styles can be:

Line Color & Style


You can set the margin, border radius and box shadow of the Line element. Let's see how each setting relates to the Line element.


Use this option to set the margin of the line. You can change the settings for all the sides of the line or modify them individually.

Line Margin Example

Border Radius

Use this option to set a border radius for the line. You can set the curve on all sides or set them individually.

Line Border Radius Example

Box Shadow

You can set a shadow over the linen using the box-shadow control group.

Line Box Shadow Example
  • X-Offset - Use this option to set the X offset of the shadow in the line.
  • Y-Offset - Use this option to set the Y offset of the shadow in the line.
  • Blur - Use this option to set the intensity of the blur effect in the line.
  • Spread & Position - Use this option to set the spread amount of the items section shadow and decide if you want the shadow to sit inside or outside of the line.
  • Color - Use this option to set the color of the line shadow.


The customize section consists of controls to customize the element if you are into HTML, CSS, and Javascript.

Line Customize
  • ID - Use this option to set an HTML ID for the element. The ID should be unique on the page.
  • Class - Use this option to set an HTML Class for the element. You can use the class for your custom CSS code.
  • Element CSS - Use this option to have better control over the element to access the inner tags of the element using $el as the CSS selection. Click here for more detailed information.
  • Hide During Breakpoint - Use this option to hide the element on different device sizes. Click here for more information.
  • Custom Attributes - Use this option to add a custom attributes to the wrapper HTML tag of the element. Such as data-info=123. You can use the option to inject custom information into the element to use on your customization code.
Custom Attributes


To see a live demo of the Line Element click here.


There you have it! Now you know how to add and design vertical and horizontal lines using Cornerstone / Pro Builders.

See something inaccurate? Let us know