Power button using only CSS, how to make

I saw code smile on face, using only CSS.

введите сюда описание изображения

    <style>
body { 
background: #eeeeee;
background: radial-gradient(ellipse at center, #ffffff 0%,#dddddd 100%);
}
.left { float: left;}
.right { float: right;}
#smile {
  position: relative;
  z-index: 0;
  background-color: yellow;
  border: 6px solid #222;
  width: 150px;
  height: 150px;
  border-radius: 100px;
  margin: 50px auto;
  box-shadow: 2px 2px 1px #B8B8B8;
}
.eye {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 100px;
  background: #222;
  margin-top: 35px;
  margin-left: 33px;
}
.eye.right { margin-left: 0; margin-right: 33px; }
.mouth {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 0;
  right: 0;
  height: 110px;
  width: 115px;
  margin: 0 auto;
  border-bottom: 8px solid #222;
  border-radius: 100%;
}
    </style> 
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Балкон.</title>
</head>
<body>
<div id="smile">
  <div class="eye left"></div>
  <div class="eye right"></div>
  <div class="mouth"></div>
</div>

</body>
</html>

How to make a power button using only CSS?

введите сюда описание изображения


Ответы (0 шт):