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...

enter image description 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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -