This works, but I’ll admit to not knowing if there’s a better way (or if it’s possible without adding a wrapper element). Using multiple box-shadow
s would be a good idea, but I can’t seem to make it look the same.
See: http://jsfiddle.net/thirtydot/8qEUc/3/
HTML:
<div id="bla">
<div> something </div>
</div>
CSS:
#bla {
overflow-y: hidden;
padding: 0 10px 10px 10px;
margin: 0 -10px
}
#bla > div {
/* the CSS from your question here */
}