<style>
div {border-radius:5px;background:#cccccc;}
span {display:block;}
</style>
<div>
<span>First line</span>
<span>Second line</span>
</div>
I want each span to fit inside the div with rounded corners, but they go in front of the div and obscure the rounded corners. If I put rounded corners on each span then you can see a faint outline of each span, even if they have the same background-color as the div.
try overflow:hidden on the div? or give it a z-index of 1000