I have an image that when rolled over reveals some lines of text, white on a red background. I would like there to be a break in the strips for each break in the line of text, like the image linked below.
However, all I've gotten to so far, is making the text appear in one single large red block. I would like the text to know where to break if it's too big for 80% of the image, and appear on a new line with a new red strip behind it.
Here's a fiddle of what I have so far.
.thumb {
position: relative;
float: left;
}
.text, .text-js {
font-family: 'Montserrat', sans-serif;
font-size: 1.6em;
line-height: 1.6em;
display: none;
position: absolute;
top: 15px !important;
left: 0px;
text-align: left;
background: #999;
background-color: #F63146;
width:80%;
padding: 1%;
display: inline;
color: #FFF;
text-transform: uppercase;
}
Sorry if the explanation is unclear, thanks in advance for any help.