Remove padding beneath heading tag

前端 未结 5 1299
时光说笑
时光说笑 2021-01-07 19:22

Currently I have a list that has an H3 heading above it (which I can\'t really remove easily, it\'s auto generated by a cms) and looks something like this

He         


        
5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 19:51

    Try setting the "border" style property on the H3 to

    border:0;
    

    It's possible that the "pipe" is actually a border on the headline, a border-right property, that you can modify or override.

    Alternative: A true pipe that the CMS generates (I'm assuming you've checked the HTML source and this is not the case, but good to ask)

    Can you select the text and see if it is a true pipe character, or rather just a visual element?

    Other Alternative: Some kind of CSS content property. More rare, since most browsers don't support it.

提交回复
热议问题