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 class="title">Cheesecake</h1>

 <!-- Begin Image -->
 <!-- Invisible Box-->
 <div class="box">
   

    <div class="plate">
      <!-- write the classes with syrup at the very end -->
      <!-- leave this for the end -->
      <div class="syrup-bottom-plate-3"></div>
      <div class="syrup-bottom-plate-4"></div>
      <!-- -->
      <div class="base">
  
        <div class="base-copy"></div>
        <!-- write the classes with syrup at the very end -->
        <div class="syrup-up-1"></div>
        <div class="syrup-bottom-1"></div>
        
        <div class="syrup-up-2"></div>
        <div class="syrup-bottom-2"></div>
        
        <div class="syrup-up-3"></div>
        <div class="syrup-bottom-3"></div>        
        
        <div class="syrup-up-4"></div>
        <div class="syrup-bottom-4"></div>
        
        <div class="syrup-up-5"></div>
        <div class="syrup-bottom-5"></div>
        <!--above this line, write the classes in the end -->
        
        
        <!--cheese white cream -->
        <div class="cheese">
          <div class="cheese-copy"></div>
        </div> <!--end of cheese -->
        
        <!-- pink cream -->
        <div class="cream">          
          <div class="cream-copy"></div>
          
          <!-- whipped-cream | the 3 buubles-->
          <div class="whipped-cream-pink-1">
            <div class="whipped-cream"></div>
          </div>
          <div class="whipped-cream-pink-2">
            <div class="whipped-cream"></div>
          </div>
          <div class="whipped-cream-pink-3">
            <div class="whipped-cream"></div>
          </div>
          <!-- end of whipped-cream -->
          
        </div> <!--end of cream -->
        
         <!-- cherries -->
        <div class="cherry cherry-0">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-1">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-2">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-3">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-4">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-5">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-6">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-7">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-8">
          <div class="cherry-bullet"></div>
        </div>
        <!-- 2nd row -->
       
        <div class="cherry cherry-9">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-10">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-11">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-12">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-13">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-14">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-15">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-16">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-17">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-18">
          <div class="cherry-bullet"></div>
        </div>
        
        <!-- 3rd row -->
        
        <div class="cherry cherry-19">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-20">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-21">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-22">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-23">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-24">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-25">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-26">
          <div class="cherry-bullet"></div>
        </div>
        <div class="cherry cherry-27">
          <div class="cherry-bullet"></div>
        </div>
        <!-- end of cherries -->
      </div> <!--end of base -->
      
      <div class="cherry-stick"></div>
      
      

    </div><!-- End plate -->

 </div> <!-- End Invisible Box -->
  
  
  <div> <!-- for footer -->
      <h5 id="footer" class="title"><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: #80DEEA; //light blue/green 
$Black: #000; //black

$plate: -webkit-gradient(radial, center center, 0, center center, 286, color-stop(0, #f6f8f9), color-stop(50, #E5EBEE), color-stop(51, #D7DEE3), color-stop(100, #f5f7f9));
$plate: -ms-radial-gradient(center, ellipse farthest-corner, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);
/* Mozilla Firefox */ 
$plate: -moz-radial-gradient(center, ellipse farthest-corner, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);
/* Opera */ 
$plate: -o-radial-gradient(center, ellipse farthest-corner, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);
/* Webkit (Safari/Chrome 10) */ 
$plate: -webkit-gradient(radial, center center, 0, center center, 286, color-stop(0, #f6f8f9), color-stop(50, #E5EBEE), color-stop(51, #D7DEE3), color-stop(100, #f5f7f9));
/* Webkit (Chrome 11+) */ 
$plate: -webkit-radial-gradient(center, ellipse farthest-corner, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);
/* W3C Markup */ 
$plate: radial-gradient(ellipse farthest-corner at center, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%);

$bread-border: #6b3d1c;
$bread: #c6935e;
$cheese-border: #f8dbaf;
$cheese: #ffeac1;
$cream-border:  #F06292;
$cream: #ffbfd4;
$whipped-cream-pink:#F06292;
$whipped-cream-white: #FFFDE7;
$cherry-border:#7f0f17;
$cherry: #e92f20;
$cheery-spot-border: #CFD8DC;
$syrup: rgba(233, 47, 32, 0.5); //like cherry
$syrup-border: rgba(127, 15, 23, 0.4); //like cherry

  
.title{text-align: center;}

#footer a:link{color:$Black}
#footer a:visited{color:$Black}
#footer a:hover{color:$cherry}

body{background: $BG-color;}

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

.plate{
  position: absolute;
  top: 5.5%;
  left: 13%;
  width: 75%;
  height: 87%;
  background: $plate;
  border-radius: 50%; 
}

.base{
  position: absolute;
  top: 29%;
  left: 20%;
  width: 68%;
  height: 37%;
  background: $bread-border;
  border-bottom: $bread-border 7px solid;
  border-radius: 15%;
  //parallelogram
-webkit-clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
}
.base-copy{
  position: absolute;
  width: 98%;
  height: 100%;
  background: $bread;
  border-radius: 15%;
  //parallelogram
-webkit-clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
}

.cheese{
  position: absolute;
  width: 96.5%;
  height: 87%;
  background: $cheese-border;
  border-bottom: $cheese-border 7px solid;
  border-radius: 15%;

-webkit-clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
}
.cheese-copy{
  position: absolute;
  width: 96.5%;
  height: 84%;
  background: $cheese;
  border-radius: 15%;

-webkit-clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
}

.cream{
  position: absolute;
  width: 97.5%;
  height: 47%;
  background: $cream-border;
  border-bottom: $cream-border 7px solid;
  border-radius: 15%;
  //parallelogram
-webkit-clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
}
.cream-copy{
  position: absolute;
  width: 99.5%;
  height: 82%;
  background: $cream;
  border-radius: 15%;

-webkit-clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
clip-path: polygon(0 0, 84% 0, 75% 100%, 0% 100%);
}

.whipped-cream-pink-1{
  position: absolute;
  top: -7%;
  left: 70%;
  width: 95.5%;
  height: 48%;
  background: $whipped-cream-pink;
  border-radius: 50%;
}
.whipped-cream-pink-2{
  position: absolute;
  top: 19%;
  left: 70%;
  width: 95.5%;
  height: 48%;
  background: $whipped-cream-pink;
  border-radius: 50%;
}
.whipped-cream-pink-3{
  position: absolute;
  top: 40%;
  left: 70%;
  width: 97.5%;
  height: 50%;
  background: $whipped-cream-pink;
  border-radius: 50%;
}
.whipped-cream{
  position: absolute;
  left: 3%;
  width: 91%;
  height: 93%;
  background: $whipped-cream-white;
  border-radius: 50%;
}




.cherry{
  position: absolute;
  width: 7%;
  height: 11%;
  background: $cherry;
  border-bottom: $cherry-border 4px solid;
  border-right: $cherry-border 4px solid;
  border-radius: 50%;
  
  &.cherry-0{  
    top: 0%;
    left: 0%;
  }
  &.cherry-1{  
    top: 4%;
    left: 9%;
  }
  &.cherry-2{  
    top: 2%;
    left: 16%;
  }
  &.cherry-3{  
    top: 0%;
    left: 23%;
  }
  &.cherry-4{  
    top: 5%;
    left: 32%;
  }
  &.cherry-5{  
    top: 0%;
    left: 38%;
  }
  &.cherry-6{  
    top: 1%;
    left: 47%;
  }
  &.cherry-7{  
    top: 3%;
    left: 54%;
  }
  &.cherry-8{  
    top: 1%;
    left: 60%;
  }
  //2nd row
  &.cherry-9{  
    top: 13%;
    left: 2%;
  }
  &.cherry-10{  
    top: 13%;
    left: 8%;
  }
  &.cherry-11{  
    top: 17%;
    left: 14%;
  }
  &.cherry-12{  
    top: 15%;
    left: 22%;
  }
  &.cherry-13{  
    top: 16%;
    left: 25%;
  }
  &.cherry-14{  
    top: 17%;
    left: 33%;
  }
  &.cherry-15{  
    top: 15%;
    left: 41%;
  }
  &.cherry-16{  
    top: 13%;
    left: 45%;
  }
  &.cherry-17{  
    top: 17%;
    left: 51%;
  }
  &.cherry-18{  
    top: 13%;
    left: 63%;
  }
  //3rd row
  &.cherry-19{  
    top: 24%;
    left: 1%;
  }
  &.cherry-20{  
    top: 26%;
    left: 9%;
  }
  &.cherry-21{  
    top: 24%;
    left: 14%;
  }
  &.cherry-22{  
    top: 26%;
    left: 23%;
  }
  &.cherry-23{  
    top: 25%;
    left: 29%;
  }
  &.cherry-24{  
    top: 27%;
    left: 35%;
  }
  &.cherry-25{  
    top: 22%;
    left: 43%;
  }
  &.cherry-26{  
    top: 26%;
    left: 50%;
  }
  &.cherry-27{  
    top: 23%;
    left: 61%;
  }

}

.cherry-bullet{
  position: absolute; 
  top: 30%;
  left: 70%;
  width: 8%;
  height: 8%;
  background: $whipped-cream-white;
  border-bottom: $cheery-spot-border 1px solid;
  border-right: $cheery-spot-border 1px solid;
  border-radius: 50%;
}

.cherry-stick{
  position: absolute; 
  top: 14%;
  left: 47%;
  width: 13%;
  height: 16%;
  border: green 2px solid;
  border-radius: 50%;
-webkit-clip-path: circle(50% at 98% 98%);
clip-path: circle(50% at 98% 98%);
}


.syrup-up-1{
  position: absolute; 
  top: 12.5%;
  left: 10%;
  width: 8%;
  height: 80%;
  background: $syrup;
  border-radius: 50%;  
  z-index:1;  
-webkit-clip-path: circle(47.5% at 51% 0);
clip-path: circle(47.5% at 51% 0);
}
.syrup-bottom-1{
  position: absolute; 
  top: -45%;
  left: 10%;
  width: 8%;
  height: 120%;
  background: $syrup;
  border-bottom: $syrup-border 8px solid;
  border-radius: 50%;  
  z-index:2;
  
  -webkit-clip-path: circle(47.5% at 50% 100%);
clip-path: circle(47.5% at 50% 100%);
}

.syrup-up-2{
  position: absolute; 
  top: 5.5%;
  left: 23%;
  width: 8%;
  height: 100%;
  background: $syrup;
  border-radius: 50%;  
  z-index:1;  
-webkit-clip-path: circle(47.5% at 51% 0);
clip-path: circle(47.5% at 51% 0);
}
.syrup-bottom-2{
  position: absolute; 
  top: -32%;
  left: 23%;
  width: 8%;
  height: 100%;
  background: $syrup;
  border-bottom: $syrup-border 8px solid;
  border-radius: 50%;  
  z-index:2;
  
  -webkit-clip-path: circle(47.5% at 50% 100%);
clip-path: circle(47.5% at 50% 100%);
}

.syrup-up-3{
  position: absolute; 
  top: 22%;
  left: 30.5%;
  width: 8%;
  height: 50%;
  background: $syrup;
  border-radius: 50%;  
  z-index:1;  
-webkit-clip-path: circle(47.5% at 51% 0);
clip-path: circle(47.5% at 51% 0);
}
.syrup-bottom-3{
  position: absolute; 
  top: -110%;
  left: 30.5%;
  width: 8%;
  height: 220%;
  background: $syrup;
  border-bottom: $syrup-border 8px solid;
  border-radius: 50%;  
  z-index:2;
  
  -webkit-clip-path: circle(47.5% at 50% 100%);
clip-path: circle(47.5% at 50% 100%);
}
.syrup-bottom-plate-3{
  position: absolute; 
  top: 32%;
  left: 42.2%;
  width:2.5%;
  height: 50%;
  background: $syrup;
  border-bottom: $syrup-border 8px solid;
  border-radius: 50%;  
  //I need z-index in order to hide everything else behind
  z-index:0;
}

.syrup-up-4{
  position: absolute; 
  top: 11%;
  left: 35.5%;
  width: 8%;
  height: 85%;
  background: $syrup;
  border-radius: 50%;  
  z-index:1;  
-webkit-clip-path: circle(47.5% at 51% 0);
clip-path: circle(47.5% at 51% 0);
}
.syrup-bottom-4{
  position: absolute; 
  top: -110%;
  left: 35.5%;
  width: 8%;
  height: 220%;
  background: $syrup;
  border-bottom: $syrup-border 8px solid;
  border-radius: 50%;  
  z-index:2;
  
  -webkit-clip-path: circle(47.5% at 50% 100%);
clip-path: circle(47.5% at 50% 100%);
}
.syrup-bottom-plate-4{
  position: absolute; 
  top: 32%;
  left: 45%;
  width:3.5%;
  height: 40%;
  background: $syrup;
  border-bottom: $syrup-border 8px solid;
  border-radius: 50%;  
  //I need z-index in order to hide everything else behind
  z-index:0;
}

.syrup-up-5{
  position: absolute; 
  top: 11%;
  left: 46.5%;
  width: 8%;
  height: 85%;
  background: $syrup;
  border-radius: 50%;  
  z-index:1;  
-webkit-clip-path: circle(47.5% at 51% 0);
clip-path: circle(47.5% at 51% 0);
}
.syrup-bottom-5{
  position: absolute; 
  top: -79%;
  left: 46.5%;
  width: 8%;
  height: 170%;
  background: $syrup;
  border-bottom: $syrup-border 8px solid;
  border-radius: 50%;  
  z-index:2;
  
  -webkit-clip-path: circle(47.5% at 50% 100%);
clip-path: circle(47.5% at 50% 100%);
}






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

Console