<div class="line solid"></div>
<div class="line dashed"></div>
<div class="line dotted"></div>
<div class="line double"></div>
body {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5vw;
  place-content: center;
}

.line {
  width: 100%;
  height: 0;
  border-top: 3px solid;
}

.solid {
  border-style: solid;
}

.dashed {
  border-style: dashed;
}

.dotted {
  border-style: dotted;
}

.double {
  border-style: double;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.