Creators

How to Add + Style Horizontal Lines

How to Add + Style Horizontal Lines

Organize your text with horizontal lines

Horizontal lines help editorial teams build content that is both visually appealing and structurally solid as they break up articles into clear and understandable sections that audiences can easily identify.

Horizontal lines are easy to add and style using our Entry Editor and our Layout & Design tool. From Entry Editor, simply click the Horizontal Line icon in the toolbar and a horizontal demarcation will be placed within your text.



How to Style Horizontal Lines for Articles

If you want to style your horizontal line for a specific look, add the following CSS to your Top Bar element in Layout & Design tool:

.body .horizontal-rule {
      border-top: $Width $Style $Color; 
  }

The following example shows a horizontal line styled in red:

How to Style Horizontal lines for AMP

Horizontal lines can also be styled for Google's Mobile Accelerated Pages (AMP) format, although it's important to note that CSS on AMP should be used judiciously because there are strict limits to the amount of styling that's allowed.

To add styling for AMP, the same code snippet called out above in this article should be added to your AMP post page in a Custom HTML element.

This is an example of how a styled horizontal line looks in a live Google AMP article:

If you have any questions about horizontal lines, email support@rebelmouse.com or contact your account manager today.

What Is RebelMouse?
Request a Proposal

Where 
Websites Are Built

The Fastest Sites in the World Run on RebelMouse

Let’s Chat

new!

RebelMouse Performance Monitoring

Real-Time Core Web Vitals

Get Started
DISCOVER MORE

Our Core Features

Our platform is a complete digital publishing toolbox that's built for modern-day content creators, and includes game-changing features such as our:

animate
Layout and Design toolLayout and Design tool on mobile
animate

Why RebelMouse?

Unprecedented Scale

RebelMouse sites reach more than 120M people a month, with an always-modern solution that combines cutting-edge technology with decades of media savvy. And due to our massive scale, 1 in 3 Americans have visited a website powered by RebelMouse.

120M+ Users
550M+ Pageviews
17+ Avg. Minutes per User
6+ Avg. Pages per User

Today's Top Websites Use RebelMouse

Thanks to the tremendous scale of our network, we are able to analyze a wealth of traffic data that informs our strategies and allows us to be a true strategic partner instead of just a vendor.

upworthyindy100Vault12No Film SchoolRawStoryResponsible StatecraftPrideMNI Market NewsPremierGuitarPenskeINN Educate Brand ConnectThe FulcrumGZEROOkayafricaBrit+CoPaper MagazinePowerToFlyNarcityCommonDreamsAllBusiness

What Clients Say

We’re here to help you weigh and understand every tech and strategic decision that affects your digital presence. Spend less time managing everything yourself, and more time focused on creating the quality content your users deserve.

Case Studies

A Team Built Like No Other

RebelMouse employs a unique, diverse, and decentralized team that consists of 70+ digital traffic experts across more than 25 different countries. We have no central office, and we cover every time zone to ensure that we’re able to deliver amazing results and enterprise-grade support around the clock.

Our team is well-versed in all things product, content, traffic, and revenue, and we strategically deploy ourselves to help with each element across all of our clients. We thrive on solving the complex.

Let's Chat