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

              
                <div class="container">
  <div class="card my-4">
    <div class="card-body">
    <h5 class="card-title">Default aligment and width</h5>
    <p class="card-text">Text with left aligment. Width auto in parent element <code>.container</code> </p>
    <a href="#" class="btn btn-primary">See more examples</a>
  </div>
  </div>
  <div class="row my-4">
    <div class="col-sm-6">
      <div class="card text-center">
        <div class="card-header">
          Centered content
        </div>
        <div class="card-body">
          <h5 class="card-title">Card in div.col-sm-6</h5>
          <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Eius consectetur porro inventore ea culpa minima a adipisci odio nostrum asperiores ipsa maiores nam, voluptatum dolor doloribus ad et?</p>
          <p>Molestias unde saepe inventore obcaecati dolorum odit illum quibusdam, sed minima et culpa dolorem non quasi ipsum vero facere rem, quia nemo eius sapiente nulla nihil, itaque praesentium. Accusamus, eveniet!</p>
          <a href="#" class="btn btn-success">See more</a>
        </div>
        <div class="card-footer text-muted">
          Footer text here
        </div>
      </div>
    </div>
    <div class="col-sm-6">
      <div class="card text-justify">
        <div class="card-header">
           Justified content
        </div>
        <div class="card-body">
          <h5 class="card-title">Card in div.col-sm-6</h5>
          <p>Nam odit magni ipsam? Vitae fuga natus a. Illum eos cupiditate, at quam ratione a ad quaerat sequi labore. Debitis suscipit eos incidunt, doloribus pariatur a voluptatibus ipsa nulla culpa.</p>
          <p>Eligendi, magnam? Dignissimos nisi non dolore deserunt quas adipisci quidem fuga eligendi quia. Distinctio, modi magnam itaque ipsum totam harum soluta consequuntur nam facilis pariatur, nobis non. Non, incidunt autem.</p>
          <a href="#" class="btn btn-success">See more</a>
        </div>
        <div class="card-footer text-muted">
          Footer text here
        </div>
      </div>
    </div>
  </div><!--/.row -->
  <div class="card w-50 my-2 text-right">
    <div class="card-body">
      <h5 class="card-title">Card width w-50</h5>
      <p class="card-text">Text with right aligment. Use class <code>text-right</code></p>
      <a href="#" class="btn btn-primary">Button</a>
    </div>
</div>

  <div class="card w-75 my-3">
    <div class="card-body">
      <h5 class="card-title">Card width w-75</h5>
      <p class="card-text">Card widt is 75% parent element</p>
      <a href="#" class="btn btn-primary">Button</a>
    </div>
  </div>
</div><!-- /.container -->
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console