Collection of free HTML and CSS <hr> code examples.

Discover a collection of free HTML and CSS hr code examples to enhance the design and styling of horizontal rules on your website.

Animated <hr>

Animated <hr>

Author:
@Grienauer | August 23, 2018
Made with:
HTML / CSS (SCSS)

About a code

Animated hr (element BAM + modifiers).

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
Fullwidth <hr>

Fullwidth <hr>

Author:
Azragh | March 09, 2018
Made with:
HTML / CSS (SCSS)

About a code

Overflow the parents container and stretch it to 100vw.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
HR with CSS

HR with CSS

Author:
Gabriele Romanato | April 30, 2017
Made with:
HTML / CSS

About a code

HR with CSS generated content.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
<hr>

<hr>

Author:
Dylan Sheffer | April 20, 2017
Made with:
HTML / CSS

About a code

Atlas themed horizontal line (hr).

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
HTML <hr> tags

HTML <hr> tags

Author:
Delonn | March 31, 2017
Made with:
HTML / CSS

About a code

HTML <hr> with custom CSS.

Compatible browsers:
Chrome (partially), Edge (partially), Firefox, Opera (partially), Safari (partially)
Dependencies:
font-awesome.css
HR with Centered Text

HR with Centered Text

Author:
Scott Zirkel | July 20, 2015
Made with:
HTML / CSS (SCSS)

About a code

Little dynamic HR tag that still pulls the content from the HTML, but gives it a bit more style. It also fails gracefully to a standard HR tag.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
Some HR Styles

Some HR Styles

Author:
Mark Murray | November 27, 2014
Made with:
HTML / CSS (SCSS)

About a code

Messing around with some horizontal rule styles.

Compatible browsers:
Firefox
Dependencies:
-
The Humble HR

The Humble HR

Author:
Shawn Beatty | March 30, 2014
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Humble <hr>

Humble <hr>

Author:
Jake Albaugh | March 16, 2014
Made with:
HTML / CSS / JavaScript

About a code

A very simple and subtle approach to <hr>s with an .activated state. Added label siblings to show additional information.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
jquery.js
HTML <hr>

HTML <hr>

Author:
Hornebom | March 16, 2014
Made with:
HTML / CSS

About a code

Nice combination of <hr> style and content.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-
HR Example

HR Example

Author:
Amanda | March 15, 2014
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Knight Rider HR

Author:
James Delibas | March 15, 2014
Made with:
HTML / CSS

About a code

Single element hr with kitt and karr light bar effect.

Compatible browsers:
Chrome, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
The Humble HR

The Humble HR

Author:
Pali Madra | March 15, 2014
Made with:
HTML / CSS (SCSS)

About a code

Uses CSS counters. Base-64, CSS3 animations. Pretty cheesy at the moment but this is more to demonstrate what you can do without compromising semantics and using only a single element to do quite a lot.

Compatible browsers:
Firefox
Responsive:
yes
Dependencies:
-
Subtle HR

Subtle HR

Author:
Jonathan Freeman | March 15, 2014
Made with:
HTML / CSS

Compatible browsers:
Firefox
Responsive:
no
Dependencies:
-
A Bit Of Elegance

A Bit Of Elegance

Author:
Bilal Ayub | March 14, 2014
Made with:
HTML (Haml) / CSS (SCSS) / JS (CoffeeScript)

About a code

The <hr> element is used to add some finesse to a responsive and beautifully typeset article.

Compatible browsers:
Firefox
Responsive:
yes
Dependencies:
-
Simple Styles for Horizontal Rules

Simple Styles for Horizontal Rules

Author:
Ibrahim Jabbari | September 13, 2013
Made with:
HTML / CSS

About a code

18 Simple Styles for horizontal rules (<hr> CSS design).

Compatible browsers:
Chrome (partially), Edge (partially), Firefox, Opera (partially), Safari (partially)
Dependencies:
-
HR Department

HR Department

Author:
Joey Hoer | October 26, 2012
Made with:
HTML / CSS (SCSS) / JavaScript

About a code

List of stylized horizontal rules.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Dependencies:
-

Discover Our Extensive Snippet Library

This heading suggests that your website provides a wide variety of snippets across different technologies, encouraging users to explore and use these resources for their development projects.

HTML Snippets.

Explore a collection of HTML snippets designed to streamline your web development process. From basic structures to complex elements.

CSS Snippets.

Discover powerful CSS snippets that help you style your web pages with ease. Whether you need layout solutions, animations

JavaScript Snippets.

Enhance your website's interactivity with our JavaScript snippets. From DOM manipulation to advanced algorithms

Bootstrap Snippets.

Leverage the power of Bootstrap with our collection of snippets. Quickly integrate responsive design components

Tailwind Snippets.

Speed up your development process with Tailwind CSS snippets. These utility-first CSS snippets enable you to

jQuery Snippets.

Simplify your JavaScript development with jQuery snippets. Easily perform common tasks like event handling, animations

React Snippets.

Build robust, component-based user interfaces with our React snippets. From state management to lifecycle methods,

Vue Snippets.

Streamline Vue.js development with our collection of snippets for creating components, managing state, and handling events.

Ready to set your Brand ablaze?

Let's craft a visual identity that ignites passion and loyalty. ✨