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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Grid System 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">
    <div class="row">
      <div class="col-12 col-md-8 alert alert-success">I take up the whole row on extra small screens, 2/3rds on medium (or larger) screens.</div>
      <div class="col-6 col-md-4 alert alert-danger">I take up half a row on extra small screens, 1/3rd on medium (or larger) screens.</div>
    </div>
    <div class="row">
      <div class="col-sm-6 col-md-4 alert alert-warning">I take up a row on extra small screens, half a row on small screens, and 1/3rd on medium (or larger) screens.</div>
      <div class="col-sm-6 col-md-4 alert alert-info">I take up a row on extra small screens, half a row on small screens, and 1/3rd on medium (or larger) screens.</div>
      <div class="col-6 col-md-4 col-lg-12 alert alert-dark">I take up half a row on extra small screens, 1/3rd on medium (or larger) screens, and a full row on large screens.</div>
    </div>
    <div class="row">
      <div class="col-6 alert alert-primary">I always take up half a row.</div>
      <div class="col-6 alert alert-secondary">I always take up half a row.</div>
    </div>
  </div>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console