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="batman">
  <div class="base-box">
    <div class="head"></div>
  </div>
  <div class="wing-left"></div>
  <div class="wing-right"></div>
  <div class="tail-left"></div>
  <div class="tail-right"></div>
</div>
<div class="caption">The Dark Knight</div>
            
          
!
            
              body,
[class$='-left'],
[class$='-right'] {
  background: black;
}

.caption {
  font-size: 2.5em;
  text-align: center;
  font-family: verdana;
  text-stroke: 10%;
  color: white;
  text-shadow: 0px -2px 5px rgba(255,255,255, .5);
}

.batman {
  margin: auto;
  margin-top: 15%;
  width: 750px;
}

.base-box {
  display: block;

  margin: auto;
  width: 550px;
  height: 200px;
  
  background: white;
  box-shadow: 0px 0px 10px white;
}

.base-box::before {
  content: '';
  position: relative;
  display: block;
  margin: auto;
  width: 155px;
  height: 65px;
  top: -28px;
  background: black;
  border-radius: 70px / 30px;
  box-shadow: inset 0 -10px 15px -10px white;
}

.base-box .head {
  position: relative;
  display: block;
  margin: auto;
  width: 22px;
  height: 35px;
  top: -40px;
  background: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0px 0px 5px white;
}

.head::after,
.head::before {
  content: '';
  display: block;
  position: relative;
  top: -10px;
  height: 20px;
  border-top: 12px solid transparent;
}

.head::after {
  float: right;
  border-right: 5px solid white;
}

.head::before {
  float: left;
  border-left: 5px solid white;
}

.wing-left,
.wing-right,
.tail-left,
.tail-right {
  display: inline-block;
}

.wing-left,
.wing-right {
  height: 120px;
  width: 220px;
  margin-top: -200px;
  border-radius: 290px / 170px;
}

.tail-left,
.tail-right {
  height: 210px;
  width: 375px;
  margin-top: -110px;
  border-radius: 390px / 200px;
}

.wing-left,
.tail-left {
  float: left;
}

.wing-right,
.tail-right {
  float: right;
}
            
          
!
            
              /*
Kushal Pandya

Web Engineer at Saba Software, Inc.

https://doublslash.com/
*/
            
          
!
999px
Loading ..................

Console