adam adam - 3 months ago 13x
CSS Question

how to achieve this this horizontal line from css or bootstrap

I am working in a project which involves html,css and bootstrap for front end designing.

Is there any way to get this view either from bootstrap itself or using core css?
can someone provide me a code how to get this line
enter image description here


Here is a CSS only solution using pseudo element. This solution will adjust to the width of the page when resized.

li {
  list-style: none;
li {
  float: left;
  position: relative;
  height: 2px;
  width: 30%;
  background-color: cornflowerblue;
li:before {
  content: '';
  position: absolute;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  top: 1px;
  transform: translateY(-50%);
  background-color: cornflowerblue;
li:last-child {
  width: 0px;