Below may be an option.
For HTML:
<div style="list-style-type:none;width:400px" class="box"> <ul id="lastfm"> <li>...</li> ... <li class="overlay"></li> </ul> </div>
Add an additional li.overlay element and attach a background image to it using CSS:
.box ul#lastfm { padding-right: 75px; position: relative; margin-left: 0; list-style: square outside none; } .overlay { outline: 1px dashed blue; position: absolute; z-index: 1; bottom: 0; right: 0; height: 70px; width: 110px; background-attachment: scroll, scroll; background-clip: border-box, border-box; background-color: transparent; background-image: ... background-origin: padding-box, padding-box; background-position: right bottom, right bottom, left 0px; background-repeat: no-repeat, no-repeat; background-size: auto auto, 70px auto, auto auto; }
Make sure the syntax for background-position absolutely correct, otherwise Safari will not be able to figure it out. Firefox was a little more forgiving.
The demo is located at: http://jsfiddle.net/audetwebdesign/GpAek/
source share