I could not find an elegant solution. Here is jsFiddle with a working solution:
http://jsfiddle.net/rcravens/pAcDE/
Given the following element:
<div id='elem'>Bob Cravens</div>
I have this CSS:
#elem:before{ content: ''; height: 160px; width: 136px; background: url('http://bobcravens.com/Content/images/author_thumb.png'); position: absolute; top: 0px; left: 0px; } #elem{ background-color: red; margin: 60px 136px; }
: earlier, you probably have, besides the "position: absolute" style. Then I used margin to offset the original div.
Hope this helps.
Bean
source share