Why would the height increase with a smaller font size?

后端 未结 5 1733
不知归路
不知归路 2020-12-08 21:39

I have a block with a certain line-height, where I insert content with the ::before pseudo element.

.block::before {
  content:\'text here\';
}
         


        
5条回答
  •  无人及你
    2020-12-08 22:00

    Hi please add a specific height on your box...

    .lorem, .ipsum, .dolor, .sit {
        border:1px solid green;
        height:30px;/*changes*/
    }
    

    Fiddle :http://jsfiddle.net/jxf29/

提交回复
热议问题