I want to make a heading, that looks like this
I tried the following:
HTML
<span class="header">Hallo</span><br /><span class="header">und Willkommen</span>
CSS:
span.header {
background: #404040;
color: #fff;
display: inline;
line-height: 43px;
padding: 5px 10px;
font-size: 24px;
text-transform: uppercase;
}
It works, but I want the line to break automatically within a h1
, without using <span>
and a <br />
.