cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <html>
  
  <head>
  </head>
  
<body>
  <h1 id="title">Tiger</h1>
 <!-- Begin Image -->
 <!-- Invisible Box-->
  
 <div class="box">
   
    <!-- Circular Head-->
    <div class="head">       
      <!-- Circular Head Copy -->
      <div class="head-copy"></div>
      <div class="orange-head">
        <div class="orange-head-copy"></div>
      </div>
      <div class="white-head"></div>
      <div class="chin"></div>
      
       <!-- Left Ear-->
      <div class="ear-left">       
         <!-- Inner ear -->
        <div class="inner-ear-shadow"></div>
        <div class="inner-ear"></div>
        
        <div class="ear-line-1"></div>
        <div class="ear-line-2"></div>
        <div class="ear-line-3"></div>
      </div>
      
      <!-- Right Ear -->
      <div class="ear-right">
      <!-- Inner Ear -->
        <div class="inner-ear-shadow"></div>
        <div class="inner-ear"></div>
        
        <div class="ear-line-1"></div>
        <div class="ear-line-2"></div>
        <div class="ear-line-3"></div>
      </div>
      
      <!-- Left Outer Eye  -->
      <div class="eye-left-black">
        <div class="eye-white"></div>
        <div class="eye-inner-yellow"></div>
        <div class="eye-inner-black"></div>
        <!-- Pupil  -->
        <div class="pupil-1"></div>
        <div class="pupil-2"></div>
      </div>
      
      <!-- Right Outer Eye  -->
      <div class="eye-right-black">
        <div class="eye-white"></div>
        <div class="eye-inner-yellow"></div>
        <div class="eye-inner-black"></div>
        <!-- Pupil  -->
        <div class="pupil-1"></div>
        <div class="pupil-2"></div>
      </div>
      
       <!-- Nose -->
       <div class="nose">
         <div class="nose-copy"></div>
       </div>
       <div class="down-nose"></div>
       <div class="shadow-nose"></div>
      
       <!-- Brows -->
      <div class="brow-left"></div>
      <div class="brow-right"></div>
      
       <!-- Hair -->
      <div class="hair-1"></div>
      <div class="hair-2"></div>
      <div class="hair-3"></div>
      
      <div class="hair-left"></div>
      <div class="hair-right"></div>
      
      <div class="mouth"></div>
      <div class="tognue"></div>
      <div class="bottom-tognue"></div>
      <div class="tooth-1"></div>
      <div class="tooth-2"></div>
      
      
      <div class="moustach-left-1"></div>
      <div class="moustach-left-2"></div>
      <div class="moustach-left-3"></div>
      
      <div class="moustach-right-1"></div>
      <div class="moustach-right-2"></div>
      <div class="moustach-right-3"></div>
      
      
      
      
  
    </div><!-- End Head -->

 </div> <!-- End Invisible Box -->
  
  <div> <!-- for footer -->
    <h4><a href="https://youtu.be/DTUgsyM8zms" target="_blank">Watch me code this image</a></h4>
      <h5 style="text-align:center"><a href="http://www.eleftheriabatsou.com" target="_blank">Eleftheria </a> | <a href="https://codepen.io/EleftheriaBatsou" target="_blank">Projects</a> | <a href="https://www.youtube.com/channel/UCC-WwYv3DEW7Nkm_IP6VeQQ" target="_blank"> Coding videos </a></h5>
    </div> <!-- end footer -->
  
</body>

</html>
            
          
!
            
              $BG-color: #ECEFF1; /*light grey */
$White: #fff;
$Dark-Brown: #250b00;
$Orange: #f28d19;
$Ears-pink: #f9dee5;
$Shadow-for-the-ears-pink: #dba0b6;
$Eyes-yellow: #f9cc00;
$Nose: #d46752;
$Shadow-nose: #f0aea2;
$Mouth-pink: #ed6eb3;
$Behind-themouth-black: #000;
  

#title{text-align: center;}

body{background: $BG-color; /*light grey */}

.box{
  position: relative;
  margin: auto;
  display: block;
  /*optional background or border*/
  //border: solid 4px red;  
  margin-top: 2%;
  width: 600px;
  height: 420px;
  background: none;
}

/* The width of the div is 50% and the height 67%. This means that the width is 50% of the box and the height 67% of the box. */
.head{
  position: absolute;
  top: 16.5%;
  left: 27%;
  width: 45%;
  height: 67%;
  background: $Orange; 
  border: $Dark-Brown 1px solid;
  border-radius: 50%; /* To make a circle */ 
}

.head-copy{
  width: 100%;
  height: 100%;
  position: absolute;
  background: $Orange;
  border-radius: 50%;
  z-index: 2; 
}

.orange-head{
  position: absolute;
  top: 14.5%;
  left: -5%;
  width: 112%;
  height: 87%;
  background: $Orange; 
  border: $Dark-Brown 1px solid;
  border-radius: 50%;
  z-index: 2;
}

.orange-head-copy{
  width: 99%;
  height: 100%;
  position: absolute;
  background: $Orange;
  border: $Orange 1px solid;
  border-radius: 50%;
  z-index: 2;
  top: -3px;
  left: 0.5px;
}

.white-head{
  position: absolute;
  top: 48.5%;
  left: 7%;
  width: 89%;
  height: 50%;
  background: $White; 
  //border: $Dark-Brown 0.5px solid;
  border-radius: 40%;
  z-index: 3;
}

.chin{
  position: absolute;
  top: 58.5%;
  left: 20%;
  width: 63%;
  height: 50%;
  background: $White; 
  border: $Dark-Brown 0.5px solid;
  border-radius: 50%;
  z-index: 2;
}

.ear-left{
  position: absolute;
  width: 50%;
  height: 45%;
  left: -20%;
  top: 6%;
  background: $Orange;
  border: $Dark-Brown 0.5px solid;
  z-index: 1;
  border-radius: 45%;
}
.ear-right{
  position: absolute;
  width: 50%;
  height: 45%;
  right: -20%;
  top: 6%;
  background: $Orange;
  border: $Dark-Brown 0.5px solid;
  z-index: 1;
  border-radius: 45%;
}

.inner-ear-shadow{
  position: absolute;
  border-radius: 50%;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  background: $Shadow-for-the-ears-pink;
}
.inner-ear{
  position: absolute;
  border-radius: 45%;
  width: 82%;
  height: 70%;
  top: 20%;
  left: 9%;
  background: $Ears-pink;
}

.ear-line-1{
  position: absolute;
  width: 10%;
  height: 14%;
  left: 22%;
  top: 4%;
  background: $Dark-Brown;
  z-index: 1;
  border-radius: 45%;
}
.ear-line-2{
  position: absolute;
  width: 7%;
  height: 12%;
  left: 37%;
  top: 1%;
  background: $Dark-Brown;
  z-index: 1;
  border-radius: 45%;
}
.ear-line-3{
  position: absolute;
  width: 5%;
  height: 11%;
  left: 59%;
  top: 1%;
  background: $Dark-Brown;
  z-index: 1;
  border-radius: 45%;
}

.hair-1{
  position: absolute;
  width: 14%;
  height: 11%;
  left: 49%;
  top: -0.5%;
  background: $Dark-Brown;
  z-index: 2;
  border-radius: 35%;
  
  -webkit-clip-path: polygon(50% 100%, 0 0, 100% 0);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.hair-2{
  position: absolute;
  width: 10%;
  height: 11%;
  left: 40%;
  top: 0%;
  background: $Dark-Brown;
  z-index: 2;
  border-radius: 38%;
  
  -webkit-clip-path: polygon(50% 100%, 0 0, 100% 0);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.hair-3{
  position: absolute;
  width: 10%;
  height: 14%;
  left: 29%;
  top: 2%;
  background: $Dark-Brown;
  z-index: 2;
  border-radius: 35%;
  
  -webkit-clip-path: polygon(50% 100%, 0 0, 100% 0);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.brow-left{
  position: absolute;
  width: 24%;
  height: 14%;
  left: 23%;
  top: 16%;
  background: $Dark-Brown;
  z-index: 2;
  border-radius: 35%;
  
  
  -webkit-clip-path: polygon(0% 25%, 23% 1%, 74% 1%, 100% 26%, 48% 21%);
clip-path: polygon(0% 25%, 23% 1%, 74% 1%, 100% 26%, 48% 21%);
}

.brow-right{
  position: absolute;
  width: 24%;
  height: 14%;
  right: 23%;
  top: 16%;
  background: $Dark-Brown;
  z-index: 2;
  border-radius: 35%;
  
  
  -webkit-clip-path: polygon(0% 25%, 23% 1%, 74% 1%, 100% 26%, 48% 21%);
clip-path: polygon(0% 25%, 23% 1%, 74% 1%, 100% 26%, 48% 21%);
}

.eye-left-black{
  position: absolute;
  top: 30.5%;
  left: 20%;
  width: 26%;
  height: 30%;
  background: $Dark-Brown; 
  border-radius: 50%;
  z-index: 2;
}
.eye-right-black{
  position: absolute;
  top: 30.5%;
  right: 20%;
  width: 26%;
  height: 30%;
  background: $Dark-Brown; 
  border-radius: 50%;
  z-index: 2;
}

.eye-white{
  width: 100%;
  height: 100%;
  position: absolute;
  background: $White;
  border-radius: 50%;
  z-index: 2;
  top: 3px;
  border: $Dark-Brown 1px solid;
  left: -1px;
}

.eye-inner-yellow{
  width: 50%;
  height: 50%;
  position: absolute;
  background: $Eyes-yellow;
  border-radius: 50%;
  z-index: 2;
  top:14px;
  left: 16px;
}
.eye-inner-black{
  width: 32%;
  height: 32%;
  position: absolute;
  background: #000;//$Dark-Brown;
  border-radius: 50%;
  z-index: 2;
  top:20px;
  left: 22px;
}

.pupil-1{
  width: 10%;
  height: 10%;
  position: absolute;
  background: $White;
  border-radius: 50%;
  z-index: 2;
  top:20px;
  left: 24.5px;
}
.pupil-2{
  width: 6%;
  height: 6%;
  position: absolute;
  background: $White;
  border-radius: 50%;
  z-index: 2;
  top: 39px;
  left: 36px;
}

.hair-left{
  width: 15%;
  height: 20%;
  position: absolute;
  background: $Dark-Brown;
  border-radius: 40%;
  z-index: 2;
  top: 123px;
  left: -12px;
  
  -webkit-clip-path: polygon(100% 60%, 0 91%, 0 36%);
clip-path: polygon(100% 60%, 0 91%, 0 36%);
}
.hair-right{
  width: 15%;
  height: 20%;
  position: absolute;
  background: $Dark-Brown;
  border-radius: 40%;
  z-index: 2;
  top: 123px;
  right: -19px;
  
  -webkit-clip-path: polygon(0 60%, 100% 90%, 100% 23%);
clip-path: polygon(0 60%, 100% 90%, 100% 23%);
}

.nose{
  position: absolute;
  background: $Nose;
  border: 1px solid $Dark-Brown;
  width: 52.5%;
  height: 22%;
  left: 23%;
  top: 55%;
  border-radius: 50px;
  z-index: 4;
}
.nose-copy{
  position: absolute;
  background: $Nose;
  width: 100%;
  height: 100%;
  top: 1px;
  border-radius: 50px;
  z-index: 4;
}
.down-nose{
  position: absolute;
  background: $Nose;
  border: 1px solid $Dark-Brown;
  width: 25%;
  height: 32.5%;
  left: 37%;
  top: 55%;
  border-radius: 50px;
  z-index: 3;
}
.shadow-nose{
  position: absolute;
  background: $Shadow-nose;
  width: 16%;
  height: 10%;
  left: 42%;
  top: 56%;
  border-radius: 50px;
  z-index: 4;
}

.mouth{
  position: absolute;
  background: #000;
  width: 50%;
  height: 20%;
  left: 26%;
  top: 90%;
  z-index: 4;
  
  -webkit-clip-path: circle(50% at 50% 0);
clip-path: circle(50% at 50% 0);
}

.tognue{
  position: absolute;
  background: $Mouth-pink;
  width: 26%;
  height: 20%;
  left: 38%;
  top: 84%;
  z-index: 5;
  
  -webkit-clip-path: circle(50% at 50% 100%);
clip-path: circle(50% at 50% 100%);
}

.bottom-tognue{
  position: absolute;
  background: $Mouth-pink;
  width: 24%;
  height: 20%;
  left: 39%;
  top: 100%;
  z-index: 5;
  
  -webkit-clip-path: circle(50% at 50% 0);
clip-path: circle(50% at 50% 0);
}

.tooth-1{
  position: absolute;
  background: $White;
  width: 7%;
  height: 6%;
  left: 44%;
  top: 102%;
  z-index: 6;
  
  -webkit-clip-path: polygon(20% 0%, 80% 0%, 66% 100%, 33% 100%);
clip-path: polygon(20% 0%, 80% 0%, 66% 100%, 33% 100%);
}
.tooth-2{
  position: absolute;
  background: $White;
  width: 7%;
  height: 6%;
  right: 42%;
  top: 102%;
  z-index: 6;
  
  -webkit-clip-path: polygon(20% 0%, 80% 0%, 66% 100%, 33% 100%);
clip-path: polygon(20% 0%, 80% 0%, 66% 100%, 33% 100%);
}

.moustach-left-1{
  position: absolute;
  background:  $Dark-Brown; 
  width: 40%;
  height: 15%;
  top: 72%;
  left: -5%;
  border-radius: 50%;
  z-index: 3;
  
  -webkit-clip-path: polygon(0 50%, 100% 48%, 100% 41%);
  clip-path: polygon(0 50%, 100% 48%, 100% 41%);
}
.moustach-left-2{
  position: absolute;
  background:  $Dark-Brown; 
  width: 50%;
  height: 15%;
  top: 76%;
  left: -12%;
  border-radius: 50%;
  z-index: 3;
  
  -webkit-clip-path: polygon(0 50%, 100% 48%, 100% 41%);
  clip-path: polygon(0 50%, 100% 48%, 100% 41%);
}
.moustach-left-3{
  position: absolute;
  background:  $Dark-Brown; 
  width: 40%;
  height: 15%;
  top: 78%;
  left: 0%;
  border-radius: 50%;
  z-index: 3;
  
  -webkit-clip-path: polygon(0 50%, 100% 48%, 100% 41%);
  clip-path: polygon(0 50%, 100% 48%, 100% 41%);
}

.moustach-right-1{
  position: absolute;
  background:  $Dark-Brown; 
  width: 40%;
  height: 15%;
  top: 72%;
  right: -5%;
  border-radius: 50%;
  z-index: 3;
  
  -webkit-clip-path: polygon(0 50%, 100% 51%, 0 43%);
clip-path: polygon(0 50%, 100% 51%, 0 43%);
}
.moustach-right-2{
  position: absolute;
  background:  $Dark-Brown; 
  width: 50%;
  height: 15%;
  top: 76%;
  right: -12%;
  border-radius: 50%;
  z-index: 3;
  
  -webkit-clip-path: polygon(0 50%, 100% 51%, 0 43%);
clip-path: polygon(0 50%, 100% 51%, 0 43%);
}
.moustach-right-3{  
  position: absolute;
  background:  $Dark-Brown; 
  width: 40%;
  height: 15%;
  top: 78%;
  right: 0%;
  border-radius: 50%;
  z-index: 3;
  
  -webkit-clip-path: polygon(0 50%, 100% 51%, 0 43%);
clip-path: polygon(0 50%, 100% 51%, 0 43%);
}









            
          
!
999px
Loading ..................

Console