Line of dots between items

前端 未结 6 1315
别那么骄傲
别那么骄傲 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:54

    something like this?

    ol li {
      font-size: 20px
    }
    .dot-div {
      border-bottom: thin dashed gray;
      width: 100%;
      height: 14px
    }
    .text-div {
      margin-top: -14px
    }
    .text-span {
      background: #fff;
      padding-right: 5px
    }
    .pull-right {
      float: right;
      padding-left: 5px
    }
    1. Item one 400$
    2. Item two with long text 400$
    3. Item three midium 400$

    JsFiddle

提交回复
热议问题