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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


  <h2>Heading Title</h2>
  <p>Article text shown by default.</p>
  <p>Lorem ipsum. Lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum.</p>
  <p>Lorem ipsum lorem ipsum. END OF INTRO.</p>
  <input type=checkbox id="show1"><label for="show1"><svg class="ArrowDwn-1" viewBox="0 0 60 64" width="30" height="32"><path d="M30 64L60 0c0 0-20 7.4-30 7.4S0 0 0 0L30 64zM55.3 4.2L30 58.1 4.7 4.2C11.6 6.5 23 9.8 30 9.8S48.5 6.5 55.3 4.2zM9.4 8.3c7 2.1 15 4 20.6 4s13.6-1.9 20.6-4L30 52.3 9.4 8.3z"/></svg> More...</label>
  <div id="artCOO-1">
    <p>Secondary text hidden by default and shown only when radio button/more is activated.</p>
    <p>More secondary text.</p>
    <label for="show1"><svg class="ArrowUp-1" viewBox="0 0 60 64"><path d="M30 0L0 64c0 0 20-7.4 30-7.4S60 64 60 64L30 0zM4.7 59.8L30 5.9l25.3 53.9c-6.8-2.2-18.2-5.6-25.3-5.6C23 54.2 11.5 57.5 4.7 59.8zM50.6 55.7c-7-2.1-15-4-20.6-4s-13.6 1.9-20.6 4l20.6-44L50.6 55.7z"/></svg> LESS</label>



                article {
  max-width: 90%;
  background: lightgray;
  margin: 5px;
  padding: 5px;

article p:last-of-type {
  display: inline-block;
  background-color: coral;

input {
  margin: 0;
  padding: 0;

label {
  display: inline-block;
  /* width: 100%; */
  color: red;
  margin: 0;
  padding: 0;

.ArrowUp-1 {
  fill: red;
  max-height: 1.2rem;
  /* width: auto; */
  width: 30px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;

label[for="show1"]:hover {
  cursor: pointer; 
  text-decoration: underline;

#artCOO-2 {
  display: none;

#show2:checked~#artCOO-2 {
  display: block;