Add Horizontal Lines Between Elements

前端 未结 2 1167
执念已碎
执念已碎 2021-02-14 08:14

I\'m trying to add a horizontal line between two elements, like LinkedIn: I can\'t get the line on the left of the image to stop at the left side count. I\'ve been Googling for

2条回答
  •  灰色年华
    2021-02-14 08:42

    Here is another one:

    .box { 
      width: 100%;  
      display:-moz-flex;
      display:-webkit-flex;
      display:-ms-flex;
      display:flex;
    }
    
    hr {
      /*border: .5px solid #000;*/
      margin-left: 10px;
      margin-right: 10px;
    }
    
    .hr-line {
      -moz-flex: 1;
      -webkit-flex: 1;
      -ms-flex: 1;
      flex: 1;
     }

提交回复
热议问题