Pen Settings



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


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.


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.


                <div class="c-user-profile">
  <div class="c-user-profile__avatar" style="background-image: url('')">
    <img alt="A young, smiling woman with black curly hair." src="">
  <h1 class="c-user-profile__name">
    Carrie Bradley
  <p class="c-user-profile__account-creation-date">
    Member since <time>5/14/2018</time>
  <p class="c-user-profile__username">


                // We can't control the size of the image a user uploads, or its aspect ratio. Because of this, we can use `background-size: cover;` to ensure the uploaded avatar image is displayed properly.
.c-user-profile__avatar {
  height: 14rem;
  width: 14rem;
  background-color: #ffa822;
  background-size: cover;
  border: 0.5rem solid #ffa822;
  border-radius: 100%;
  -ms-high-contrast-adjust: none; // Ensure image is shown in High Contrast Mode

// Pen Setup
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  vertical-align: baseline;

body {
  background-color: #dee0e6;
  color: #134e6f;
  display: grid;
  font-family: 'Karla', sans-serif;
  grid-template-columns: 0.25fr 1fr 0.25fr;
  grid-template-rows: 2rem 1fr 2rem;
    ". .     ."
    ". panel ."
    ". .     .";
  justify-content: center;

.c-user-profile {
  align-items: center;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.15rem 1rem -0.75rem #134e6f;
  display: flex;
  flex-direction: column;
  grid-area: panel;
  padding: 2rem;
  text-align: center;

.c-user-profile__name {
  line-height: 1.2;
  margin-bottom: 0.25rem;

.c-user-profile__account-creation-date {
  letter-spacing: 0.05em;
  text-transform: uppercase;

.c-user-profile__username {
  font-size: 1.25rem;
  margin-top: 1.25rem;