My CSS-styled div is pretty straightforward
.text { text-transform: capitalize;
color: #FFFFFF;
background: #918a8a;
opacity: 0.6;
font-size: 2em;
height: 80px;
width: 200px;
}
It creates a grey box with white text inside, measuring 200px by 80px.
I'm looking to add some "transparent" whitespace if the text wraps to the next line beyond the 200px limit.
For example, in the following HTML:
<div class="text">Here is some text that I typed</div>
It should look like this:
https://i.sstatic.net/Aklg4.png
If the background changes (like blue), the transparent "whitespace" would allow the new color to show through. The design will change based on user choice, even potentially using images.
https://i.sstatic.net/r7hil.png
The text may vary in length from 0 to 60 characters and wrap automatically within one div tag.