how to give input border left and right small length

前端 未结 5 1912
感动是毒
感动是毒 2021-01-20 14:28

I need to display the input field and i need give border bottom , left and right. But here i want only small portion border left side and right side.

5条回答
  •  太阳男子
    2021-01-20 15:03

    You can use box-shadow to create this type of border.

    input {
      width: 300px;
      border: none;
      margin: 50px;
      height: 35px;
      box-shadow: 13px 13px 0px -10px #000000, -13px 13px 0px -10px #000000;
      outline: none;
      font-size: 22px;
      background: none;
    }

提交回复
热议问题