html - How to make vertical lines between list items using CSS? - Stack Overflow

PHOTO EMBED

Sat Oct 24 2020 21:36:38 GMT+0000 (Coordinated Universal Time)

Saved by @Bujhm #css

ul {
  max-width: 400px;
  margin: 0 auto;
  list-style-type: none;
  counter-reset: steps;
  margin: 0;
  font-family: sans-serif;
}
ul li {
  padding: 0 0 20px 50px;
  position: relative;
  margin: 0;
}
ul li:after {
  position: absolute;
  top: 0;
  left: 0;
  content: counter(steps);
  counter-increment: steps;
  border: 2px solid #000;
  border-radius: 50%;
  display: inline-block;
  height: 24px;
  width: 24px;
  text-align: center;
  line-height: 24px;
  background: #fff;
}
ul li:before {
  position: absolute;
  left: 13px;
  top: 0;
  content: "";
  height: 100%;
  width: 0;
  border-left: 2px dashed #000;
}
ul li:last-of-type:before {
  border: none;
}
content_copyCOPY

https://stackoverflow.com/questions/40463542/how-to-make-vertical-lines-between-list-items-using-css