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.

            
              #dailyCSSImages.day21
  .heading
    h1.title Superman
    h4.subtitle Daily CSS Images :: Day 21
  .Superman.m
    .head.m
      .curl
      .hairL
      .hairR
      .hair
        .top
      .earL
      .earR
      .face
        .eyeL
        .eyeR
        .nose
          .line
          .left
          .right
        .mouth
        .top
        .mid
          .left
          .right
    .body.m
      .neck.m
      .main.m
        .skin.m
        .leftC
        .rightC
        .blue
          .super.m
            p.m s
            .top.m
            .btm.m
          
        
            
          
!
            
              $color:rgba(212,156,95,1);
$skin:#e6bb84;
$border:1px solid red;
.Superman{
    top:150px;
  overflow:hidden;
  border-radius:50%;
 background: rgb(255,214,94);
background: -moz-radial-gradient(center, ellipse cover,  rgba(255,214,94,1) 0%, rgba(254,191,4,1) 100%);
background: -webkit-radial-gradient(center, ellipse cover,  rgba(255,214,94,1) 0%,rgba(254,191,4,1) 100%);
background: radial-gradient(ellipse at center,  rgba(255,214,94,1) 0%,rgba(254,191,4,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffd65e', endColorstr='#febf04',GradientType=1 );

  height:500px;
  width:500px;
  position:absolute;

  div{
    position:absolute;
    &:after,&:before{
       position:absolute;
      content:"";
      display:block;
    }
  }
  .head{
    z-index:20;
    height:39%;
    width:29%;
    top:5%;
    }
  .curl{
    z-index:1;
    top:18%;
    left:14%;
    width:30px;
    height:20px;

    border-radius:0 0 50% 50%;
    box-shadow: 4px 3px 1px 0 #000;
    transform: skew(35deg,15deg);
    //transform: rotate(14deg);
  }
  .hairL,.hairR{
    height:55px;
    width:5px;
    background:#000;
    z-index:2;
    &:after,&:before{
      z-index:1;
      width: 0;
    height: 0;
     
    }
    &:after{
       border-top: 25px solid transparent;
        border-bottom: 30px solid transparent;
    }
    &:before{
      border-top: 27px solid transparent;
      border-bottom: 35px solid transparent;
    }
  }
   .hairL{
     left:2%;
      top:15%;
       &:after{
         left:5px;
        border-left: 10px solid  #000;
      }
     &:before{
       z-index:1;
       top:2px;
       left:5px;
       border-left: 20px solid #f3d0a6;
     }
    }
    .hairR{
      right:5%;
    top:16%;
      &:after{
         right:5px;
    border-right: 10px solid  #000;
    }
       &:before{
       z-index:1;
       top:2px;
       right:5px;
       border-right: 20px solid #f3d0a6;
     }
  }
  .hair{
    left:-20px;
    top:-20px;
      width:100%;
      height:100%;
      transform:rotate(45deg);
    
    .top{
      left:3px;
     background:#000;
      width:105px;
      height:110px;
      border-radius:20px;
       transform:rotate3d(-1, 1, 0, -55deg)
    }
  }
  .earL,.earR{
    width:55px;
    height:38px;
    background:$skin;
    border-radius: 14px;
    top:40%;
    &:before{
      content:"";
      width:80%;
      height:80%;
      display:block;
      top:0%;
      position:absolute;
      border-radius:10px;
    }
    &:after{
      z-index:2;
      width:10px;
      height:10px;
      background:$color;
      border-radius:50%;
    }
  }
  .earL{
    left:-17px;
    transform: rotate(65deg);
    &:before{
      right:0;
      border-left:2px solid $color;
    }
    &:after{
      left:19px;
      top:22px;
    }
  }
  .earR{
    right:-10px;
    transform: rotate(-65deg);
     &:before{
       left:0;
       border-right:2px solid $color;
    }
    &:after{
      right: 19px;
      top: 22px;
    }
  }
  .face{
    bottom:0;
    height:80%;
    width:100%;
    .nose{
      z-index:2;
      height:45px;
      width:30px;
      top:30%;
      left:37%;
      .line{
        height:90%;
        width:3px;
        background:$color;
        right:28%;
        &:before,&:after{
          width: 0;
          height: 0;
        }
        &:before{
          border-right: 7px solid transparent;
           border-top: 12px solid $color;
        }
        &:after{
          bottom:0px;
          border-right: 10px solid transparent;
          border-bottom: 20px solid $color;
        }
        
      }
      .left,.right{
        bottom:-7px;
          width: 11px;
        height: 11px;
        border-radius:3px;
        transform:rotate(45deg);
        background:$skin;
        box-shadow: -2px -2px 1px 1px $color;
        }
      .left{left:5px;}
      .right{right:0;}
    }
    .mouth{
      z-index:2;
      width:23%;
      height:3px;
      left:37%;
      bottom:40px;
      border-radius:50%;
      box-shadow: 0px -1px 1px 1px $color;
    }
    .eyeL, .eyeR{
      top:32%;
      z-index:10;
      width:12px;
      height:10px;
      border-radius:40% 40% 50% 50%;
      background:#0173bc;
      &:after{
        top:-10px;
        height:10px;
        width:40px;
        border-radius:2px; 
      }
      &:before{
        z-index:11;
        height:3px;
        border-radius:20%;
        background:#000;
        width:27px;
      }
    }
    .eyeL{
      left:27%;
      &:before{left:-10px;}
      &:after{
        left:-20px;
        transform: skew(-45deg,15deg);
        box-shadow: -2px -3px 1px 0px #000;
      }
    } 
    .eyeR{
      right:30%;
       &:before{left:-5px;}
       &:after{
         right:-20px;
        transform: skew(45deg,-15deg);
        box-shadow: 2px -3px 1px 0 #000;
      }
    }
    .top{
      left:5px;
      top:-7px;
      width: 0;
    height: 0;
    border-left: 63px solid $skin;
    border-right: 63px solid $skin;
    border-top: 17px solid transparent;
    }
    .mid{
      top:9px;
       left:3px;
      background:#e6bb84;
      height:100%;
      width:90%;
      border-left:2px solid $color;
      border-right:2px solid $color;
       border-radius:  0%  0%  50%  50% / 0%  0% 80% 80%;
      overflow:hidden;
    -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
      .left{
        left:0px;
        bottom:0px;
        width:30px;
        height:125px;
        background: #f3d0a6;
        z-index:2;
        transform: skew(15deg,50deg);
      }
      .right{
        right:0px;
        bottom:0px;
        width:30px;
        height:125px;
        background: #f3d0a6;
        z-index:2;
        transform: skew(-15deg,-50deg);
      }
    }
  }

  .body{
    top:30%;
    width:100%;
    height:100%;
    .main{
      width:100%;
    height:100%;
    }
    .neck{
      z-index:10;
      border-bottom: 100px solid $skin;
      border-left: 20px solid transparent;
      border-right: 20px solid transparent;
      height: 0;
      width: 125px;
      &:before{
        left:-19px;
        border-top: 90px solid transparent;
    border-bottom: 50px solid transparent;
        z-index: 1;
        top: 2px;
        border-right: 20px solid #f3d0a6;
      }
      &:after{
        border-top: 90px solid transparent;
    border-bottom: 50px solid transparent;
        z-index: 1;
        top: 2px;
        right: -18px;
        border-left: 20px solid #f3d0a6;
      }
    }
    .skin{
      z-index:2;
      top:11%;
      border-bottom: 120px solid $skin;
      border-left: 170px solid transparent;
      border-right: 170px solid transparent;
      height: 0;
      width:26%;
      &:before{
        background: #f3d0a6;
    z-index: 2;
         width: 75px;
    height: 20px;
        bottom:-50px;
        left: -80px;
        transform: skew(0deg, -35deg);
      }
      &:after{
        background: #f3d0a6;
    z-index: 2;
         width: 85px;
    height: 30px;
        bottom:-63px;
        right: -88px;
        transform: skew(0deg, 35deg);
      }
    }
    .leftC,.rightC{
       z-index:3;
      top:20%;
      height:90px;
      width:50px;
      background:#8c0b05;
      &:after{
        width: 0;
        height: 0;
        border-bottom: 30px solid #8c0b05;
      }
      &:before{
        top:-20px;
         background:#8c0b05;
         height:90px;
        width:65px;
      }
    }
      .leftC{
        left:12%;
         transform: skew(20deg,-35deg);
        &:after{
          left:50px;
          border-right: 20px solid transparent;
        }
        &:before{
          left:-50px;
        transform:skew(30deg,0deg)
        }
      }
      .rightC{
         right:12%;
         transform: skew(-20deg,35deg);
        &:after{
          right:50px;
          border-left: 20px solid transparent;
        }
        &:before{
          right:-50px;
          transform:skew(-30deg,0deg)
        }
      }
    }
  .blue{
    z-index:1;
    width:100%;
    height:40%;
    top:30%;
    background:#4e8abe;
  }
  .super{
    p{
      top:-65px;
      color:#8c0b05;
      font-size:280px;
      z-index:10;
      font-weight:bold;
      position:absolute;
      font-family: 'Rokkitt', serif;
    }
    .top{
    border-style: solid;
    border-color: transparent transparent #8c0b05 transparent;
    border-width: 0 50px 50px 50px;
    height: 0;
    width: 165px;
    top:35px;
      &:before{
        //background:#ffd203;
          border-style: solid;
    border-color: transparent transparent #ffd203 transparent;
    border-width: 0 35px 35px 35px;
    height: 0;
    width: 150px;
      top:20px;
        left:-27px;
      }
    }
    .btm{
        top: 85px;
        width: 0;
        height: 0;
        border-style: solid;
        border-color: #8c0b05 transparent transparent transparent;
        border-width: 140px 135px 0 135px;
      &:before{
        left: -105px;
        top: -141px;
        width: 0;
        height: 0;
        border-style: solid;
        border-color: #ffd203 transparent transparent transparent;
        border-width: 110px 105px 0 105px;
      }
    }
  }
}

//------------------------------------------------------------
.m{ 
  left:0;
  right:0;
  margin:auto;
}
body{
  background:#fff;
  text-align:center;
}

h1,h4{margin:0;}
h1{
  font-size:5em;
  color: lighten(#000,30%);
}
h4{
  font-size:1.5em;
  color: lighten(#000,50%);
}

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

Console