While browsing through the Nintendo Online website, I noticed an interesting post image with tiny dots created using CSS. This inspired me to achieve a similar effect, but without enclosing the image within a div container.
Below is my current code snippet:
.image {
background: url(http://nintendo-online.de/img/bg-game-header-cover.png) repeat;
}
<img class="image" src="http://media2.giga.de/2013/06/osx_hero_2x.jpg" height="250" width="500px">
I am wondering what modifications are required to make the dots visible on the image. When I tried setting the z-index to 1, the image moved up a level. Is achieving this effect without using a div container possible?