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

              
                <head>
  <meta charset="UTF-8">
  <title>Bootstrap Button Example</title>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body>
  <div class="container">
    <section class="mb-5">
      <h1>Here are some buttons:</h1>
      <hr>
      <button>Button</button>
      <button class="btn">Default button</button>
      <button class="btn btn-primary">Primary button</button>
      <button class="btn btn-secondary">Secondary button</button>
      <button class="btn btn-success">Success button</button>
      <button class="btn btn-danger">Danger button</button>
      <button class="btn btn-warning">Warning button</button>
      <button class="btn btn-info">Info button</button>
      <button class="btn btn-light">Light button</button>
      <button class="btn btn-dark">Dark button</button>
      <button class="btn btn-link">Link button</button>
    </section>
    <section class="mb-5">
      <h1>Here are some more buttons:</h1>
      <hr>
      <button class="btn btn-outline-primary">Primary button</button>
      <button class="btn btn-outline-secondary">Secondary button</button>
      <button class="btn btn-outline-success">Success button</button>
      <button class="btn btn-outline-danger">Danger button</button>
      <button class="btn btn-outline-warning">Warning button</button>
      <button class="btn btn-outline-info">Info button</button>
      <button class="btn btn-outline-light">Light button</button>
      <button class="btn btn-outline-dark">Dark button</button>
    </section>
    <section class="mb-5">
      <h1>Here are some other elements styled as buttons:</h1>
      <hr>
      <input type="button" class="btn btn-primary" value="Primary Button">
      <a href="#" role="button" class="btn btn-success">Success button!</a>
      <input type="button" class="btn btn-warning" value="Warning Button">
      <a href="#" role="button" class="btn btn-danger">Danger button!</a>
    </section>
    <section class="mb-5">
      <h1>Here are some buttons at different sizes:</h1>
      <hr>
      <button class="btn btn-primary btn-lg">Large button</button>
      <button class="btn btn-primary btn-sm">Small button</button>
    </section>
    <section class="mb-5">
      <h1>Here's a block-level button</h1>
      <hr>
      <button class="btn btn-primary btn-block">Block-level button</button>
    </section>
  </div>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console