We would like to know how to create CSS3 round button with inserted image.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.face {<!-- ww w. j ava 2 s .co m-->
width: 180px;
height: 180px;
margin: 20%
}
#face-wrapper .face {
position: absolute;
z-index: 1;
-moz-box-shadow: 0px 0px 0px 15px #e8e6e6; /* Firefox */
-webkit-box-shadow: 0px 0px 0px 15px #e8e6e6; /* Safari, Chrome */
box-shadow: 0px 0px 0px 15px #e8e6e6; /* CSS3 */
}
.img-circle {
-webkit-border-radius: 500px;
-moz-border-radius: 500px;
border-radius: 500px;
}
</style>
</head>
<body>
<div class='container span8'>
<div id="face-wrapper">
<img class="img-circle face"
src="http://www.java2s.com/style/download.png" />
</div>
</div>
</body>
</html>
The code above is rendered as follows: