<span class='parent'>Parent<span class='child'> and child</span></span>
If I do this:
.parent {
background-color: green;
}
all of the text has a green background color. but if I add this:
.child {
float: right;
}
the child no longer retains this property. I could do background-color
on the child but I need the space between the two to be highlighted.
Is there a way to do this?
Jsfiddle: http://jsfiddle.net/SLWTd/