You have divided the image into layers:
- Color background
- White layer with a transparent circle.
- Eye and other icons to place inside the circle
It might look something like this:
HTML:
<div class="colorful-box"> <div class="box-with-circle"> <span class="eye icon"/>Lorem Ipsum With eye </div> </div> <div class="colorful-box"> <div class="box-with-circle"> <span class="ear icon"/>Lorem Ipsum an ear instead </div> </div>
CSS
.colorful-box{ background: url(link-to-the-colorfull-background.jpg); width: 400px; height: 100px; float: left; } .box-with-circle{ background: url(white-box-with-transparent-circle.png); margin: 10px; width: 380px; height: 80px; float: left; } .icon{ width: 80px; height: 80px; float: left; position: realtive; top: 80px; left: 80px; } .eye{ background: url(transparent-eye.png); } .eye{ background: url(transparent-ear.png); }
user920041
source share