In the following example, the header text is on several lines. Is it possible to add left and right additions to each line (without wrapping each word in another element, of course)?
If this is not possible using CSS, is it possible to do this using jQuery?
HTML:
<div class="wrap"> <h1>Donec commodo sapien lectus, nec gravida magna</h1> </div>
CSS
.wrap{ width: 100px; } h1{ display:inline; background:green; color:#fff; }
Demo: http://jsfiddle.net/289oo48b/

jquery html css
user1355300
source share