Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                <div id="cerita">
  <p>Pada suatu hari ada seorang anak yang sangat tampan. Selain tampan, dia juga dermawan dan suka menabung. Siapakah nama anak tersebut? Temukan di balik bungkus makanan ringan bertanda khusus! Dapatkan di gerai-gerai terdekat.</p>
  <p>Benarkah? Tentu saja tidak. Nama anak tersebut hingga kini masih dirahasiakan dari pengetahuan publik. Mungkin suatu saat identitasnya akan terbongkar; cepat atau lambat.</p>
</div>
              
            
!

CSS

              
                body {
  background: #c69c6d;
}
#cerita {
  background: beige;
  padding: 30px;
  margin: 20px 10px;
  box-shadow: 2px 2px 10px #754c24;
}
p {
  padding: 5px 10px;
  font-family: sans;
  font-size: 18px;
  line-height: 22px;
  text-align: justify;
  color: #38200a;
}
p:first-child:first-letter{
  font-size: 70px;
  font-style: italic;
  font-weight: bold;
  text-shadow: 2px 2px 0px #38200a, 3px 3px 0px beige;
  position: relative;
  float: left;
  padding: 10px;
  border: 1px solid #38200a;
  color: beige;
  background: #38200a;
  margin: 5px 15px 7px -7px;
  box-shadow: 2px 2px 0px beige, 4px 4px 0px #38200a;
}
              
            
!

JS

              
                
              
            
!
999px

Console