php - How to highlight lines with background colour and have padding on each line? -
i using php output , exerpt inside p tag.
i wrapping inside string of p tag span.
<p class="lead"><span><?php the_advanced_excerpt(); ?></span></p>
the outputted html...
<p class="lead"><span>motorcycle helmet full face or open face. motocross or enduro style helmet better choice. these designed off-road use , have particular…</span></p>
the span has css on it...
.carousel-caption .lead span { background: #f60; padding: 5px; }
please see out come here...
see green arrows - looks desired.
see red arrows - padding missing.
as can see orange high lighted lines flush @ end of each line. apart beginning , end of string.
so question how can add left/right padding each of lines?
so appears each line has been highlighted background colour. plastic tape embossed letters on.
is posible somehow?
add "display: block" or "display:inline-block" span's class
Comments
Post a Comment