cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

            
              <h1>Daily CSS Images :: Day 24<br>Iron Man</h1>

<div class="ironman">
  <div class="head">
    <div class="mask"></div>
  </div>
  <div class="torso">
    <div class="power"></div>
  </div>
  <div class="upperarm"></div>
  <div class="forearm"></div>
  <div class="waist"></div>
  <div class="legs">
    <span class="propulsion"></span>
  </div>
</div>
            
          
!
            
              body {
  background: #7cc;
}

h1 {
  color: white;
  font-family: 'Arima Madurai';
  text-align: center;
}

::before,
::after {
  content: "";
  position: absolute;
}

.ironman {
  margin: 0 auto;
  position: relative;
  width: 640px;
  height: 480px;
}

.head {
  position: absolute;
  left: calc((100% - 12.5%) / 2);
  top: 10%;
  width: 12.5%;
  height: 20%;
  background: #8e1101;
  border-radius: 40% 40% 0 0;
  overflow: hidden;
  z-index: 4;
}

.head::before,
.head::after {
  top: 48%;
  width: 26%;
  height: 8%;
  background: #eafaff;
  z-index: 1;
}

.head::before {
  left: 10%;
}

.head::after {
  right: 10%;
}

.mask {
  position: absolute;
  left: calc((100% - 40%) / 2);
  top: 35%;
  width: 40%;
  height: 70%;
  background: #deb800;
}

.mask::before,
.mask::after {
  top: -25%;
  width: 120%;
  height: 100%;
  background: #deb800;
}

.mask::before {
  left: -70%;
  -webkit-transform: rotate(-55deg);
  transform: rotate(-55deg);
}

.mask::after {
  right: -70%;
  -webkit-transform: rotate(55deg);
  transform: rotate(55deg);
}

.torso {
  position: absolute;
  left: calc((100% - 28%)/2);
  top: 30%;
  width: 28%;
  height: 35%;
  background: #8e1101;
  box-shadow: inset 10px 0 0 0 #5c0c09, inset 20px 0 0 0 #6a1512;
  border-radius: 0 0 40% 40%;
  z-index: 3;
}

.torso::before,
.torso::after {
  top: -10%;
  width: 35%;
  height: 30%;
  background: #8e1101;
  border: 2px solid #561009;
}

.torso::before {
  left: -20%;
  box-shadow: inset 5px -3px 0 #590c09, inset 10px -6px 0 0 #6a1512;
  border-radius: 140% 50% 50% 30%;
}

.torso::after {
  right: -20%;
  border-radius: 50% 140% 30% 50%;
}

.power {
  position: absolute;
  left: calc((100% - 20%)/2);
  top: 20%;
  width: 20%;
  height: 22%;
  background: #fff;
  box-shadow: inset 0 0 0 3px rgba(196, 215, 240, .8), inset 0 0 0 4px rgba(196, 215, 240, .6), 0 0 0 3px rgba(255, 255, 255, .6), 0 0 0 5px rgba(255, 255, 255, .3);
  border-radius: 50%;
}

.upperarm,
.forearm {
  position: absolute;
  left: calc((100% - 7%)/2);
  width: 7%;
  height: 21%;
}

.upperarm {
  top: 32%;
}

.forearm {
  top: 48%;
}

.upperarm::before,
.upperarm::after,
.forearm::before,
.forearm::after {
  width: 100%;
  height: 100%;
  transform-origin: top center;
}

.upperarm::before,
.upperarm::after {
  background: #8e1101;
  background: -webkit-linear-gradient(#8e1101 0%, #8e1101 40%, #deb800 41%);
  background: -moz-linear-gradient(#8e1101 0%, #8e1101 40%, #deb800 41%);
  background: -o-linear-gradient(#8e1101 0%, #8e1101 40%, #deb800 41%);
  background: linear-gradient(#8e1101 0%, #8e1101 40%, #deb800 41%);
}

.upperarm::before {
  left: -225%;
  border-radius: 100% 0 20% 20%;
  -webkit-transform: rotate(15deg);
  transform: rotate(15deg);
}

.upperarm::after {
  right: -225%;
  border-radius: 0 100% 20% 20%;
  -webkit-transform: rotate(-15deg);
  transform: rotate(-15deg);
}

.forearm::before,
.forearm::after {
  background: #8e1101;
  background: -webkit-linear-gradient(#deb800 0%, #deb800 15%, #8e1101 16%);
  background: -moz-linear-gradient(#deb800 0%, #deb800 15%, #8e1101 16%);
  background: -o-linear-gradient(#deb800 0%, #deb800 15%, #8e1101 16%);
  background: linear-gradient(#deb800 0%, #deb800 15%, #8e1101 16%);
  border-radius: 15% 15% 35% 35%;
}

.forearm::before {
  left: -280%;
  -webkit-transform: rotate(-10deg);
  transform: rotate(-10deg);
}

.forearm::after {
  right: -280%;
  -webkit-transform: rotate(10deg);
  transform: rotate(10deg);
}

.waist {
  position: absolute;
  top: 60.5%;
  left: calc((100% - 22%)/2);
  width: 22%;
  height: 5%;
  background: #8e1101;
  z-index: 2;
}

.waist::before {
  top: 100%;
  border-top: 28px solid #8e1101;
  border-right: 71px solid transparent;
  border-left: 71px solid transparent;
}

.legs {
  position: absolute;
  left: calc((100% - 22%)/2);
  top: 65.5%;
  width: 22%;
  height: 35%;
  border-radius: 0 0 20% 20% / 70%;
  background: #deb800;
  background: -webkit-linear-gradient(#deb800 0%, #deb800 44%, #8e1101 45%);
  background: -moz-linear-gradient(#deb800 0%, #deb800 44%, #8e1101 45%);
  background: -o-linear-gradient(#deb800 0%, #deb800 44%, #8e1101 45%);
  background: linear-gradient(#deb800 0%, #deb800 44%, #8e1101 45%);
  z-index: 1;
}

.legs::before {
  left: calc((100% - 6px)/2);
  top: 0;
  width: 6px;
  height: 100%;
  background: #7cc;
}

.propulsion {
  position: absolute;
  bottom: -30%;
  left: calc((100% - 20%)/2);
  width: 20%;
  height: 30%;
}

.propulsion::before, .propulsion::after {
  width: 100%;
  height: 100%;
  background: -webkit-linear-gradient(#b0c1d8, rgba(196, 215, 240, .8) 75%, transparent);
  background: linear-gradient(#b0c1d8, rgba(196, 215, 240, .8) 75%, transparent);
}

.propulsion::before {
  left: -90%;
}

.propulsion::after {
  right: -90%;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console