Dashed Line SVG element, flat

Dashed Line SVG element, flat

Evenly spaced dashes form a horizontal divider that reaches almost edge to edge. Use it between entries in a printable checklist or beneath a heading on a worksheet.

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/FC20NMqxeoVe/amnt.svg" alt="Dashed Line" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 24" preserveAspectRatio="none" fill="currentColor"><path d="M8 11h20v2H8zm32 0h20v2H40zm32 0h20v2H72zm32 0h20v2h-20zm32 0h20v2h-20zm32 0h20v2h-20zm32 0h20v2h-20zm32 0h20v2h-20zm32 0h20v2h-20zm32 0h20v2h-20zm32 0h20v2h-20zm32 0h20v2h-20z"/></svg>
CSS background-image
.dashed-line {
  background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/FC20NMqxeoVe/amnt.svg");
  background-size: contain;
}
CSS mask-image (takes the text colour)
.dashed-line {
  width: 1.5em; height: 1.5em;
  background-color: currentColor;
  mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/FC20NMqxeoVe/amnt.svg") center / contain no-repeat;
}
React
import DashedLineSvg from "./dashed-line.jsx"; // from the React tab above

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

Tags

Made with AMNT

AMNT SVG 1.1 drew this from the words Dashed Line: Evenly spaced horizontal dashes extend 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