Smile

 



HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="hello.css">
</head>
<body>
  <div class="face">
    <div class="mouth"></div>
    <div class="eyes">
      <div class="left-eye"></div>
      <div class="right-eye"></div>
     
    </div>
   
  </div>
 
</body>
</html>

CSS

.face{
    width: 400px;
    height: 400px;
    background-color: #ffa511;
    border-radius:50% ;
}
.mouth{
    width: 200px;
    height: 50px;
    background-color: brown;
    border-radius: 0 0 50px 50px;
    position: absolute;
    top: 280px;
    left: 100px;
}
.left-eye{
    height: 100px;
    width: 100px;
    background-color: black;
    border-radius: 50px;
    position: absolute;
    top: 100px;
    left:80px
}
.right-eye{
    height: 100px;
    width: 100px;
    background-color: black;
    border-radius: 50px;
    position: absolute;
    top: 100px;
    left:230px
}


Comments