Come si può ripetere questa immagine di sfondo CSS 1 x 1px sopra l'HTML <img>
?Immagine di sfondo CSS sopra <img>
http://jsfiddle.net/hjv74tdw/1/
mi sono imbattuto CSS show div background image on top of other contained elements, tuttavia sembra richiedere un extra div. Idealmente, vorrei non dover usare affatto un div, ma secondo lo CSS Background-image over HTML img non è possibile, almeno non per uno scenario reattivo al 100%.
.test {
background: url(http://placehold.it/1/1) repeat;
position: relative;
z-index: 100;
width: 200px;
}
.test img {
width: 100%;
display: block;
position: absolute;
z-index: 50;
}
<div class="test">
<img src="http://lorempixel.com/400/400">
</div>