<p>
  <span class="dashed">Dashed example</span>
</p>

<p>
  <span class="dotted">Dotted example</span>
</p>

<p>
  <span class="double">Double example</span>
</p>
a {
  color: #000;
  text-decoration: none;
}

.dashed {
  background-image: linear-gradient(to right, blue 75%, transparent 75%);
  background-position: 0 1.04em;
  background-repeat: repeat-x;
  background-size: 8px 3px;
}

.dotted {
  background-image: linear-gradient(to right, #d534e9 50%, transparent 50%);
  background-position: 0 1.04em;
  background-repeat: repeat-x;
  background-size: 6px 3px;
}

.double {
  background-image: linear-gradient(to bottom, red 33%, transparent 33%, transparent 66%, red 66%, red);
  background-position: 0 1.03em;
  background-repeat: repeat-x;
  background-size: 2px 6px;
}

// ----- Unrelated ----- //

html {
  $square-color: #eee;
  $square-size: 8px;
    background-image:
    linear-gradient(45deg, $square-color 25%, transparent 25%, transparent 75%, $square-color 75%, $square-color), 
    linear-gradient(45deg, $square-color 25%, transparent 25%, transparent 75%, $square-color 75%, $square-color);
  background-position: 0 0, $square-size $square-size;
  background-size: ($square-size * 2) ($square-size * 2);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 48px;
  line-height: 1;
  padding: 20px;
}

body {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}

p {
  margin: 0;
  margin-bottom: 25px;
  
  &:last-child {
    margin-bottom: 0;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.