How can I make a fieldset legend-style “background line” on heading text?

前端 未结 9 1324
后悔当初
后悔当初 2020-11-29 08:31

I\'m attempting to style heading text similar to how your default legend text appears in fieldsets; that is to say, I\'d like a strikethrough-like line to come up to, but no

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 09:08

    I'm not sure if this would suit your need...

    h1:before, h1:after {
     content: " ------------- ";
    }
    

提交回复
热议问题