Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<section class="section-art">
  <div class="art-container">
    <div class="body"></div>
    <div class="legs"></div>
    <div class="neck"></div>
    <div class="head"></div>
  </div>
</section>
              
            
!

CSS

              
                
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

}

.body,
.body::before,
.body::after,
.legs,
.legs::before,
.neck,
.head,
.head::before,
.head::after {
  position: absolute;
}

.body::before,
.body::after,
.legs::before,
.head::before,
.head::after {
  content: '';
}

.section-art {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-container {
  height: 400px;
  width: 400px;
  position: relative;
}

.section-art .body {
  top: 50%;
  transform: translateY(-50%);
  height: 120px;
  width: 240px;
  border-radius: 0 0 120px 120px;
  background-image: linear-gradient(to right, #a8c4db, #a8c4db 50%, #c3d3e4 50%, #c3d3e4);
  transform-style: preserve-3d;
}
.section-art .body::before {
  height: 85%;
  width: 85%;
  border-radius: 0 0 100px 100px;
  left: 50%;
  transform: translateX(-50%);
  background-image: linear-gradient(to right, #9d8375, #9d8375 50%, #b3a29a 50%, #b3a29a);
}

.section-art .body::after {
  height: 20px;
  width: 30px;
  background-color: #998378;
  border-radius: 0 0 0 20px;
  z-index: -1;
  left: -20px;
  transform: translateZ(-10px)
}

.legs {
  height: 40px;
  width: 10px;
  background-color: #e9a52a;
  top: 255px;
  left: 110px;
  z-index: -1;
}
.legs::before {
  height: 15px;
  width: 30px;
  background-color: #e9a52a;
  border-radius: 0 15px 0 0;
  bottom: 0;
}

.neck {
  top: 51px;
  left: 235px;
  height: 120px;
  width: 60px;
  border-radius: 0 100px 100px 0;
  background-image: radial-gradient(circle at left center, #FFF, #FFF 33.333%, #88abc3 33.333%, #88abc3 52.666%, #aac3df 6.666%, #aac3df);
  z-index: -1;
}

.head {
  top: 32.5px;
  left: 235px;
  overflow: hidden;
  height: 50px;
  width: 150px;
  border-radius: 15px 0 50px;
  background-image: linear-gradient(to right, #c2d7e2, #c2d7e2 25%, #f1c066 25%, #f1c066);
}
.head::before {
  height: 50%;
  width: 100%;
  bottom: 0;
  background-color: rgba(0, 0, 0, .1);
}
.head::after {
  height: 10px;
  width: 10px;
  background-color: #333;
  border-radius: 50%;
  top: 20px;
  left: 25%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 5px #6c5a5b;
}
              
            
!

JS

              
                
              
            
!
999px

Console