I have got a headline (<h1>) with a long text. Since the text does not fit into one line, the browser breaks the line. However, the height of the headline does not scale, i.e., a headline without a linebreak has the same height than one with a linebreak. I am using a background image which should always be behind all the text of the headline. But since the height does not scale, the headline with the implicit linebreak looks awkward: The background is only behind the first line, the second line has no background at all. Why doesn’t the headline scale and how can I make it scale?
I have got a headline ( <h1> ) with a long text. Since the
Share
By default the background scale here is a simple example
Now, to help you:
h1 {background-repeat: y-repeat;}correctly in the CSS.Or
h1 { height: 20px; }which is wrong if you want to be able to manage different height.