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 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

              
                <som-cards>
  <som-card title="Basic Card">
    <som-card-body>
        This is an example of a basic card.  Cards can have lots of uses but this is the most basic of them all.
    </som-card-body>
  </som-card>

  <som-card>
    <som-card-header>A Simple Header</som-card-header>
    <som-card-body>
        This is an example of a card with a header.  Headers can be used for simple messages or adding additional functionality such as links or buttons.
    </som-card-body>
  </som-card>

  <som-card>
    <som-card-body>
        This is an example of a card with a footer.  Footers can be used for simple messages or adding additional functionality such as links or buttons.
    </som-card-body>
    <som-card-footer>
        A Simple Footer
    </som-card-footer>
  </som-card>
</som-cards>


<div class="row pt-4">
  <div class="col">
    <som-card title="Complex Card Example" img-url="./static/images/card-tahquamenon.jpg" img-position="top" img-alt-tag="image alt tag example">
      <som-card-body>
        <p>Bacon ipsum dolor amet ball tip spare ribs burgdoggen ribeye. Strip steak leberkas bresaola short loin ground round spare ribs. Bresaola kielbasa shoulder leberkas burgdoggen. Shoulder jowl ribeye jerky shank meatball venison shankle pork loin pork strip steak frankfurter fatback.</p>
      </som-card-body>
      <som-card-footer>
        <span class="mr-auto">View Details</span>
        <a href="#" class="text-dark-gray">
            <som-icon name="icon-chevron-right" size="sm"></som-icon>
        </a>
      </som-card-footer>
    </som-card>
  </div>

  <div class="col">
    <som-card background-color="success">
      <som-card-header>Great Job</som-card-header>
      <som-card-body>
        <div class="text-center">
          <div class="h1">51</div>
          <div>CORRECT ANSWERS</div>
        </div>
      </som-card-body>
    </som-card>
  </div>

  <div class="col">
    <som-card background-color="danger">
      <som-card-body>
        <div class="text-center">
          <div class="h1">23</div>
          <div>INCORRECT ANSWERS</div>
        </div>
      </som-card-body>
      <som-card-footer>Needs Improvement</som-card-footer>
    </som-card>
  </div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console