:before, :after and padding

前端 未结 2 765
臣服心动
臣服心动 2021-01-17 09:44

I have the following css-code:

.readMore:before {
    content: \'\';
    display: block;
    float: left;
    width: 10px;
    height: 27px;
    margin: 0;
          


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-17 10:16

    I just styled the height based on rem values, e.g. height: 2 rem. Can't confirm that's the best solution, but for responsiveness worked out quite perfectly in 1 line of code.

提交回复
热议问题