The problem I have is I want to put something like this
<span>CONSEQUAT, VEL ILLUM DOLORE EU FEUGIAT NULLA FACILISIS AT VERO EROS ET ACCUMSAN ET IUSTO ODIO DIGNISSIM QUI BLANDIT PRAESENT LUPTATUM ZZRIL DELENIT AUGUE DUIS DOLORE TE FEUGAIT NULLA FACILISI.</span>
with CSS like this
span {
font-size: 25px;
line-height: 28px;
color: white;
background-color: #2EC6C6;
padding-right: 5px;
padding-left: 5px;
}
in a percentage size div. When the line breaks I want each line to have the applied padding to the left and right. At the moment it's only applied at the start and end of the whole sentence.
I know I could put each line in separate span's but I want it dynamic so I could write many lines and it would be applicable.
Any suggestions? Would prefer pure CSS but willing to move to javascript.
Here is a Fiddle