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.

+ add another resource


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


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.


                <div class="parent">
  <p class="child1">This is the first paragraph inside the div which is given 'text-align: center'. Since 'p' is a block level element and a child of this div, so its content also got centered. </p>
  <div class="child2">This 'div' is the second child of the parent div. Since 'div' is also a block level element, its content also got centered. The width of this child div is set to 400px.</div>
  <p class="child3">This paragraph is the third child of the parent div. It is given 'text-align: right' which overrode the value given to the parent div and made its content right aligned.</p>


                .parent {
  text-align: center;
  font-size: 17px;
  font-family: 'Noto Sans', sans-serif;

.child1 {
  background-color: #A7C9A7;

.child2 {
  width: 400px;
  background-color: #C9A7A7;

.child3 {
  text-align: right;
  background-color: #A7C9C9;