I wrote jsfiddle problems. I want the span to be indented further so that it does not obscure one above it. It is currently displayed that the layout only considers the size of the content text and ignores the padding. I would like to be able to achieve this with a general CSS rule that works no matter what fill values have an overlapping range, if possible.
HTML:
<span class='outer'> <span class='inner'> <span class='content'>Hello</span> </span> <span class='inner'> <span class='content'> <span id='pad-me-out'> World </span> </span> </span> </span>
CSS
.outer > .inner{ clear:left; float:left; } #pad-me-out{ background: #999; padding:7px 14px; }
0xor1 source share