I\'m really not sure how to pose this question any other way, but I\'m trying to load text on top of an image - which appears to be a tricky task in itself, but I\'ve got it
Here are the changes I would make:
span
using bottom
rather than top
, so you always have a specific margin between the span and the bottom of the image.line-height
so that it will change proportionally to the font-size
Updated CSS:
.herotext span {
position: absolute;
bottom: 20px;
font-family: 'museo_slab500';
font-size: 150%;
color: #fff;
padding: 0 20px;
width: 40%;
line-height: 150%;
background: rgb(0, 0, 0);
background: rgba(0, 0, 0, 0.7);
}