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

+ 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

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 class="info">
  <span> Title </span>
  <p>
    Lorem ipsum dolor, sit amet consectetur adipisicing elit.
    Dolorem, quam iusto a iste tenetur hic natus sapiente,
    voluptates omnis consequuntur eaque, provident enim? Officiis
    optio sint voluptas nostrum tempore expedita. Lorem ipsum dolor
    sit amet consectetur adipisicing elit. Omnis placeat vitae
    ratione facilis veritatis animi, dolorum at accusantium qui
    asperiores tempore beatae architecto ipsum libero voluptatibus.
    Consequuntur culpa harum veritatis?
  </p>
  <span> Author </span>
</div>

<div class="info">
  <span> Title </span>
  <p>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic
    nulla inventore quasi ad tempora harum voluptate eius delectus,
    asperiores similique totam nobis aliquam illo autem, quia, porro
    dolor laborum reprehenderit quo perferendis odio temporibus
    deserunt! Necessitatibus nesciunt laborum aperiam consectetur
    qui excepturi deserunt animi tenetur? Quos iusto maiores
    voluptate reiciendis unde possimus accusantium corporis repellat
    commodi cupiditate a, sed deleniti?
  </p>
  <span> Author </span>
</div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

span:first-child {
  font-size: xx-large;
  font-weight: 900;
}

span:last-child {
  display: block;
  margin-left: auto;
  color: grey;
  text-align: right;
}

/* Additional styling */
.info {
  margin: 24px 2vw;
}

.info span:last-child::before {
  content: "-";
}

html,
body {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  font-family: Roboto;
}

              
            
!

JS

              
                
              
            
!
999px

Console