Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <h1>Interesting borders</h1>

<div class="container">
  <div class="row">
    <div class="item">
      <h2>Item Title</h2>

      <p> It's not who I am underneath but what I do that defines me. Does it come in black? It's ends here. Hero can be anyone. Even a man knowing something as simple and reassuring as putting a coat around a young boy shoulders to let him know the world hadn't ended.</p>
    </div>
    <div class="item">
      <h2>Item Title</h2>

      <p>
        It was a dog. It was a big dog. Well, you see... I'm buying this hotel and setting some new rules about the pool area. I seek the means to fight injustice. To turn fear against those who prey on the fearful.</p>
    </div>
    <div class="item">
      <h2>Item Title</h2>

      <p>
        I'm Batman I seek the means to fight injustice. To turn fear against those who prey on the fearful. I'm not wearing hockey pads. Accomplice? I'm gonna tell them the whole thing was your idea</p>
    </div>
  </div>
</div>
              
            
!

CSS

              
                @import "https://unpkg.com/open-props";

html {
  font-family: var(--font-sans);
}

.row {
  display: flex;
  gap: 2em;
  justify-content: space-evenly;
  padding: 2em;
}

.item {
  padding: 1em;
  border-block-start: 5px solid;
  border-inline-start: 5px solid;
  border-image-source: linear-gradient(45deg, rebeccapurple, transparent 75%);
  border-image-slice: 1;
}

              
            
!

JS

              
                
              
            
!
999px

Console