Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <title>Smiley Face</title>
</head>
<body>
    <div id='head'> 
        <div class='eye' id='left-eye'>
            <div class='pupil'></div>
        </div>
        <div class='eye' id='right-eye'>
            <div class='pupil'></div>
        </div>
        <div id='mouth'></div>
    </head>
</body>
</html>
 
#head {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: gold;
    /* add position properties here */
    
}
.eye {
    width: 20px;
    height: 50px;
    border-radius:50%;
    background-color: black;
    /* add position properties here */
    
}
#left-eye {
    /* add position properties here */
  position: relative;
  left: 120px;
  bottom: -40px;
}
#right-eye {
    /* add position properties here */
  position: relative;
  left: 60px;
  bottom: 10px;
}
.pupil {
    width: 5px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
    /* add position properties here */
    position: relative;
    left: 16px;
    bottom: -12px;
    
}
#mouth {
    width: 100px;
    height: 40px;
    background-color: pink;
    border-radius:50%;
    /* add position properties here */
  position: relative;
  left: 50px;
  bottom: -10px;
    
}
//Only use left and top, do not use right or bottom
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers