Looking for a solution to style dynamic titles with each word on its own line? Check out the desired look here. (Note the black backgrounds for each word)
The challenge is keeping the same style while having the whole title inside one tag without dynamically inserting H1's before and after each word.
Want to change the HTML markup from:
<div class="tagline">
<h1>
Oh
</h1>
<h1>
Look
</h1>
<h1>
A
</h1>
<h1>
Headline
</h1>
<h1>
Thanks
</h1>
</div>
to something like this:
<div class="tagline">
<h1>
Oh Look A Headline Thanks
</h1>
</div>
Don't forget to maintain the same style as in the link above. Thanks in advance!