Square brackets with CSS

后端 未结 5 1927
花落未央
花落未央 2021-02-14 22:36

I wish to create a [ and ] bracket just with CSS. Is there a way to specify the top and bottom border (Without slicing the image) so it looks like a br

5条回答
  •  旧时难觅i
    2021-02-14 23:21

    .b:after {
      content: "]"
    }
    
    .b:before {
      content: "["
    }
    text

    working example: http://codepen.io/yardenst/pen/bhGIy

提交回复
热议问题