CSS Battles
About
Github
Back
Battle: #73
<div class="c"> <div class="hair"></div> <div class="eye"></div> <div class="eye r"></div> <div class="mouth"></div> <div class="smile-l"></div> <div class="smile-r"></div> <div class="smile-m"></div> </div> <div class="ear"></div> <div class="ear r-ear"></div> <style> body { margin: 0; background: #f3ac3c; } div { position: absolute; } .c { transform: translate(-50%, -50%); top: 50%; left: 50%; width: 150px; height: 150px; background: #998235; border-radius: 100px 100px 80px 80px; overflow: hidden; } .hair { left: 50px; width: 50px; height: 50px; background: #1a4341; top: -35px; transform: rotate(45deg); } .eye { width: 20px; height: 20px; left: 25px; top: 60px; border-radius: 100%; background: #1a4341; } .r { left: 105px; } .mouth { top: 95px; left: 25px; width: 100px; height: 40px; background: #ffffff; border-radius: 20px 20px 50px 50px; } .smile-l { top: 105px; width: 20px; height: 10px; right: 70px; border-radius: 0 0 40px 40px; border: 10px solid #1a4341; border-top: none; } .smile-r { top: 105px; width: 20px; height: 10px; left: 70px; border-radius: 0 0 40px 40px; border: 10px solid #1a4341; border-top: none; } .smile-m { left: 70px; top: 85px; width: 10px; height: 20px; background: #1a4341; } .ear { z-index: -1; background: #1a4341; border: 10px solid #998235; width: 40px; height: 40px; border-radius: 100%; top: 65px; left: 115px; } .r-ear { left: 225px; } </style>