Padding for two-lined headline

前端 未结 5 1570
陌清茗
陌清茗 2021-01-24 09:22

That is a little bit hard to explain, if someone knows a better title for this, please go ahead and change it.

I want to draw a black box behind my headline. I\'m doing

5条回答
  •  清酒与你
    2021-01-24 09:51

    What about using position:relative with a left adjustment? Prob not the best method if you're not doing the adjustments manually but at least it's a css-only solution?

    Example -> http://jsfiddle.net/JnLje/358/

    More info from thirtydot -> Add padding at the beginning and end of each line of text

提交回复
热议问题