I am striving to create a realistic screw head. Here is what I have done so far:
<div class="screw"><div class="indent"></div></div>
.screw {
position: absolute;
top: 10px;
left: 49%;
width: 30px;
height: 30px;
border-radius: 50px;
background-image: url('img/nail-head.jpg');
-moz-box-shadow: 0px 3px 8px #000;
-webkit-box-shadow: 0px 3px 8px #000;
box-shadow: 0px 3px 8px #000;
}
.indent {
height: 10px;
width: 30px;
margin-top: 10px;
background-image: url('img/nail-head.jpg');
-moz-box-shadow: inset 0px 3px 8px #222;
-webkit-box-shadow: inset 0px 3px 8px #222;
box-shadow: inset 0px 3px 8px #222;
transform:rotate(150deg);
-ms-transform:rotate(150deg);
-webkit-transform:rotate(150deg);
border-radius: 2px;
}
I have added a shadow effect to make it appear more three-dimensional. Any suggestions on enhancing the realism of the screw head would be greatly appreciated!