Straight Line SVG element, flat

Straight Line SVG element, flat

A single thin line runs unbroken across nearly the full width. It works as a section break in a report or a boundary below a website navigation bar.

Similar SVGs

More from Horizontal Rules, Flat

How to use it

HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/E74P72kjI2tH/amnt.svg" alt="Straight Line" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 24" preserveAspectRatio="none" fill="currentColor"><rect x="8" y="11" width="384" height="2"/></svg>
CSS background-image
.straight-line {
  background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/E74P72kjI2tH/amnt.svg");
  background-size: contain;
}
CSS mask-image (takes the text colour)
.straight-line {
  width: 1.5em; height: 1.5em;
  background-color: currentColor;
  mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/E74P72kjI2tH/amnt.svg") center / contain no-repeat;
}
React
import StraightLineSvg from "./straight-line.jsx"; // from the React tab above

<StraightLineSvg width={48} height={48} />

Tags

Made with AMNT

AMNT SVG 1.1 drew this from the words Straight Line: One thin, unbroken horizontal line spans nearly the full width. as part of the pack Horizontal Rules, Flat. Want one like it? Make your own in the SVG studio.

Licence: free. A Free account may use it for personal work; Pro and Max download it with a commercial licence, fixed at download, forever. No credit needed. Read the licence

Settings