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

Auto Save

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

              
                <!--

The media object component does not exist in Rivet 2. However, it can be recreated using Rivet 2 utility classes. The markup for two example media objects is provided below.

For more on Rivet utilities, see https://rivet.iu.edu/utilities/

-->

<div class="rvt-container-sm rvt-p-all-xl rvt-flow">

  <!-- Basic media object -->

  <div class="rvt-flex rvt-items-center rvt-border-all rvt-border-radius rvt-p-all-md">
    <div class="rvt-p-right-md">
      <div class="rvt-avatar rvt-avatar--sm">
        <img class="rvt-avatar__image" src="https://v2.rivet.iu.edu/img/placeholder/avatar-1.jpg" alt="">
      </div>
    </div>
    <div class="rvt-grow-1">
      <h3 class="rvt-text-bold rvt-m-bottom-none rvt-p-bottom-none"><a href="#">Norval Ashton</a></h3>
      <p class="rvt-ts-xs rvt-m-top-xxs rvt-m-bottom-none">Updated April 3, 2022 by <strong>username</strong></p>
    </div>
  </div>

  <!---->

  <!-- Media object record -->

  <div class="rvt-flex rvt-items-center rvt-border-all rvt-border-radius rvt-p-all-md">
    <div class="rvt-p-right-sm">
      <div class="rvt-checkbox">
        <input type="checkbox" name="checkbox-demo" id="checkbox-1">
        <label for="checkbox-1"><span class="rvt-sr-only">Select Norval Ashton</span></label>
      </div>
    </div>
    <div class="rvt-grow-1">
      <h3 class="rvt-text-bold rvt-m-bottom-none rvt-p-bottom-none"><a href="#">Norval Ashton</a></h3>
      <p class="rvt-ts-xs rvt-m-top-xxs rvt-m-bottom-none">Updated April 3, 2022 by <strong>username</strong></p>
    </div>
    <div class="">
      <div class="rvt-dropdown" data-rvt-dropdown="dropdownDefault">
        <button type="button" class="rvt-button rvt-button--plain" data-rvt-dropdown-toggle="dropdownDefault" aria-haspopup="true" aria-expanded="false">
          <span class="rvt-sr-only">Actions for Norval Ashton</span>
          <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true">
            <g fill="currentColor">
              <circle cx="8" cy="8" r="2" />
              <circle cx="14" cy="8" r="2" />
              <circle cx="2" cy="8" r="2" />
            </g>
          </svg>
        </button>
        <div class="rvt-dropdown__menu" id="dropdownDefault" data-rvt-dropdown-menu hidden>
          <a href="#">View</a>
          <a href="#">Edit</a>
          <a href="#">Archive</a>
        </div>
      </div>
    </div>
  </div>

  <!---->

</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                Rivet.init();
              
            
!
999px

Console