Line of dots between items

前端 未结 6 1310
别那么骄傲
别那么骄傲 2021-02-14 17:54

Restaurant web site and menu. I need to get \"line of dots\" between menu item and price. I need to get it without writing dots manually one by one. This feature should work aut

6条回答
  •  不思量自难忘°
    2021-02-14 18:45

    .text-div {
      background-image: linear-gradient(to right, #000 10%, rgba(255, 255, 255, 0) 0%);
      background-position: 0 14px;
      background-size: 10px 1px;
      background-repeat: repeat-x;
      width: 100%;
      height:25px;
    }
    
    .text-span {
      background: #fff;
      padding-right: 10px
    }
    
    .pull-right {
      float: right;
      padding-left: 10px
    }
    1. Item: $125.00
    2. Very long name of the item: $20.00
    3. Not long name: $30.00

提交回复
热议问题