I want to remove the \'s and do the break lines through CSS. If I change the spans to display:block the width will go 100% and I need the w
display:block
use float: left; and clear: left;
float: left;
clear: left;
http://jsfiddle.net/rtM6J/
.text span { background: rgba(165, 220, 79, 0.8); float: left; clear: left; padding: 7px 10px; color: #fff; }