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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <div class="container">
  <div class="penguin">
    <div class="body">
      <div class="face">
        <div class="left-eye"></div>
        <div class="right-eye"></div>
        <div class="left-eyeball"></div>
        <div class="right-eyeball"></div>
        <div class="beak"></div>
        <div class="divider"></div>
      </div>
      <div class="belly">
        <div class="shadow"></div>
      </div>
    </div>
    <div class="left-wing"></div>
    <div class="right-wing"></div>
    <div class="left-foot"></div>
    <div class="right-foot"></div>
  </div>
</div>
            
          
!
            
              * {
  box-sizing: border-box;
}

body {
  background-color: aliceblue;
}

.penguin {
  position: absolute;
  top: 2em; 
  left: 2em;
  width: 30em;
  height: 30em;

}

.body {
  width: 15em;
  height: 20em;
  background-color: black;
  position: absolute;
  border-top-left-radius: 7em;
  border-top-right-radius: 7em;
  border-bottom-left-radius: 6em;
  border-bottom-right-radius: 6em;
  top: 3em;
  left: 5em;
}

.face {
  position: absolute;
}

.left-eye {
  position: relative;
  width: 6em;
  height: 8em;
  background-color: snow;
  border-radius: 3em;
  left: 2em;
  top: 4em;
}

.left-eyeball {
  width: 2em;
  height: 2em;
  border: 0.2em solid black;
  border-radius: 50%;
  position: relative;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  top: -10em;
  left: 4em;
  z-index: 2;
}

.right-eye {
  position: relative;
  width: 6em;
  height: 8em;
  background-color: snow;
  border-radius: 3em;
  left: 7em;
  top: -4em;
}

.right-eyeball {
  width: 2em;
  height: 2em;
  border: 0.2em solid black;
  border-radius: 50%;
  position: relative;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  top: -12em;
  left: 9em;
  z-index: 2;
}

.beak {
  position: relative;
  width: 1.5em;
  height: 1.5em;
  transform: rotate(45deg);
  background-color: gold;
  top: -13em;
  left: 6.7em;
}

.divider {
  position: relative;
  width: 2em;
  height: 0.2em;
  background-color: black;
  top: -13.8em;
  left: 6.5em;
}

.belly {
  position: absolute;
  background-color: snow;
  width: 11em;
  height: 9.5em;
  top: 9em;
  left: 2em;
  border-bottom-left-radius: 5em;
  border-bottom-right-radius: 5em;
/*   box-shadow: inset 5px 40px -40px rgba(0,0,0,0.9);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent; */
}

/* .shadow {
  position: relative;
  width: 10em;
  height: 5em;
  border-bottom-left-radius: 5em;
  border-bottom-right-radius: 3em;
  border-top-color: transparent;
  border-right-color: transparent;
  left: 0.5em;
  top: 4em;
  box-shadow: 0 15px 20px -20px rgba(0,0,0,0.9);
} */

.left-wing {
  width: 2em;
  height: 5em;
  position: relative;
  background-color: black;
  transform: rotate(45deg);
  border-bottom-left-radius: 2em;
  top: 14em;
  left: 3em;
}

.right-wing {
  width: 2em;
  height: 5em;
  position: relative;
  background-color: black;
  transform: rotate(-45deg);
  border-bottom-right-radius: 2em;
  top: 9em;
  left: 20em;
}

.left-foot {
  width: 4.5em;
  height: 2em;
  position: relative;
  background-color: black;
  border-top-left-radius: 2em;
  border-bottom-left-radius: 1em;
  top: 11em;
  left: 5.2em;
  transform: rotate(-5deg);
}

.right-foot {
  width: 4.5em;
  height: 2em;
  position: relative;
  background-color: black;
  border-top-right-radius: 2em;
  border-bottom-right-radius: 1em;
  top: 9em;
  left: 15.5em;
  transform: rotate(5deg);
}
            
          
!
            
              // Source: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw0NDQ0NDQ4NDQ0NDQ0NDg0PDQ8NDg0OFREWFhYRFRUYICggGBomGxYVITIhJSktLi4uFx8zODMtNygtLisBCgoKDQ0OFhAQFTcdHR0rKy0tLjcvLS0tNzQrKy0vKzUtKzMtNy43KystNys3KzAtNysrKystLTIrKysrKystNP/AABEIAMcA/gMBIgACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAABggEBQcBAgP/xABMEAABAwMABwQHAgcMCwAAAAABAAIDBAURBgcSITFBURNhcYEIFCIyUpGhQoIjYmOSsbLBFRckMzRDcpOUosLRFiU1U1RVc3TD0uH/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQIDBAX/xAAkEQEBAAICAQEJAAAAAAAAAAAAAQIREjED8AQFIUFhcaGxwf/aAAwDAQACEQMRAD8A7iiIgIiICIiAiIgIiICIiAiLXXO+0NGCaqrpqfHKSZjD8icoNiihVZrX0ehODcGvP5KGeUfNrcfVYn78mjv/ABUv9lqP/VB0BFEKHWdo/PgMuMLSeUrZIP12hSair4Khu3BNFMz4o5GyD5hBkoiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiLHr62GlhkqKiRsUMTS+SR5w1rQg/ckAZO4DeSeAXNdM9cdtt5fDSf6wqW5aezdinjcOTpPtfdz4hcv1la1Kq6ufTUbn01uGW7I9mWqHxSHk38UeeeXN0Ez0j1oXu4lwdVOpoTwgpcwNA6Fw9p3mcKHSPc4lziXOJyXEkknqSvlEBERAWRRV09M/tKeaWCQcHxSPiePNpBWOiDqmiWu240pbHcGivg3Avw2OpYO5w3O8xnvXdNFtKqC7w9tRTCQDHaRn2ZoT0ew7x48DyJVN1sLFeqq3VDKqjldDNGdxHBw5tcODmnoUF018RP2mh2HNzvw4YcPEclENW2nkF8ps+zFWwgesU+eH5Rmd5Yfpw8ZkgIiICIiAiIgIiICIiAiIgIiICIiAiIgKvmv7T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ZrMslRj+FiB3wzsdFjz4fVcWotW9+niM0duqNgAH29iJ5Hcx5Dj8lo7lZqykJbVU1RTkHH4WJ7B5EjBWeMFp6S8Uc4BhqqaUHmyeN/6Cst0rAMlzQOpcAFT5FOK7WyrNILfTjM9bSRf06iNpPgM71GrrrUstOCGzvqnjg2CMuB+87A+qrkthbLJW1hDaWlqKgk4/BxPePMgYCvGG3QNINctbMHMoIWUjDkdq89tN3EcGt+RXN6+unqZHTVEsk0ruL5HFzj3b+XcpPV6sr/AAxCZ9umLSCSGOjle3xY0kj5KK1NNJC4sljfE8cWPY5jh5FWTSPyVg9S2mdlEMdujgbb6xxGS9+2K2ThntTj2jyafAZVfEVF40UR1U11ZU2Sjlrg7ti17Q9+Q+WIOIZI7PMjG/nx5qXICIiAiIgIiICIiAiIgIiICIiAiIgKNXTQCyVb3ST26mL3Elz2MMLnE8SSzGT3qSogidLq1sEXu22md/1A6b9clSGgtlLSt2aangp2/DDDHE35NAWWiAvl7A4EOAcDxBAIK+kQaer0VtU5LprdQSuP2n0cDnfMtysT/QOx/wDK6D+zR/5KRog1FJota4DtQ26gid8TKSBjvmG5W1Y0NGGgADgAMAL6RAWLXW+nqWllRBDUMIwWTRMlaR0w4FZSIIpV6t7BNnatlK3P+7aYf1CF927V5YqZwfFbabaactdI0zlp5EdoTvUoRB4BheoiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiIP/9k=
            
          
!
999px
Loading ..................

Console