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

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

              
                <!DOCTYPE html>
<html>
<head>
	<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
        rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<div class="container">
	
	<div class="row">
    <div class="col-3">
      <h3>Left Nav</h3>
      <ul class="nav flex-column">
        <li class="nav-item"><a class="nav-link" href="#">One</a></li>
        <li class="nav-item"><a class="nav-link" href="#">Two</a></li>
        <li class="nav-item"><a class="nav-link" href="#">Three</a></li>
      </ul>
      <p>This is some more content in the left nav. Look how I wrap!</p>
    </div>
    <div class="col">
      <h1>Bootstrap Grid</h1>
      <p>This example shows Bootstrap's grid in action. The left and right navs each take up 3 columns, so they aren't very wide. This center section takes up the remaining 6 columns.</p>
    </div>
    <div class="col-3">
      <h3>Right Nav</h3>
      <ul class="nav flex-column">
        <li class="nav-item">
          <a class="nav-link" href="#">
            Lions
          </a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">
            Tigers
          </a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">
            Bears
          </a>
        </li>
      </ul>
      <p>This is some more content in the right nav. Look how I wrap!</p>
    </div>
	</div>

</div>

</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console