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

              
                <div class="container">
  <div class="row">
    <div class="col-lg-8 col-md-10 mx-auto">
      <!-- average rating and rating breakdown -->
      <div class="row card-deck">
        <div class="card">
          <div class="card-body">
            <h5 class="card-title">Average Rating</h5>
            <p class="card-text"><strong>4.8</strong> / 5</p>
            <span class="border rounded p-1 bg-warning text-white"><i class="fas fa-star"></i></span>
            <span class="border rounded p-1 bg-warning text-white"><i class="fas fa-star"></i></span>
            <span class="border rounded p-1 bg-warning text-white"><i class="fas fa-star"></i></span>
            <span class="border rounded p-1 bg-warning text-white"><i class="fas fa-star"></i></span>
            <span class="border rounded p-1 bg-light text-dark"><i class="fas fa-star"></i></span>
          </div>
        </div>
        <div class="card">
          <div class="card-body">
            <h5 class="card-title">Rating Breakdown</h5>
            <div class="d-flex ratings-breakdown">
              <small>5 <i class="fas fa-star pr-1"></i></small>
              <div class="flex-fill align-self-lg-center progress">
                <div id="ratings-breakdown-five-stars-progress" class="progress-bar bg-success" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
              </div>
              <small id="ratings-breakdown-five-stars-text" class="pl-1">- 10</small>
            </div>
            <div class="d-flex ratings-breakdown">
              <small>4 <i class="fas fa-star pr-1"></i></small>
              <div class="flex-fill align-self-lg-center progress">
                <div id="ratings-breakdown-five-stars-progress" class="progress-bar bg-primary" role="progressbar" style="width: 80%" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"></div>
              </div>
              <small id="ratings-breakdown-five-stars-text" class="pl-1">- 8</small>
            </div>
            <div class="d-flex ratings-breakdown">
              <small>3 <i class="fas fa-star pr-1"></i></small>
              <div class="flex-fill align-self-lg-center progress">
                <div id="ratings-breakdown-five-stars-progress" class="progress-bar bg-info" role="progressbar" style="width: 60%" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"></div>
              </div>
              <small id="ratings-breakdown-five-stars-text" class="pl-1">- 6</small>
            </div>
            <div class="d-flex ratings-breakdown">
              <small>2 <i class="fas fa-star pr-1"></i></small>
              <div class="flex-fill align-self-lg-center progress">
                <div id="ratings-breakdown-five-stars-progress" class="progress-bar bg-warning" role="progressbar" style="width: 40%" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>
              </div>
              <small id="ratings-breakdown-five-stars-text" class="pl-1">- 4</small>
            </div>
            <div class="d-flex ratings-breakdown">
              <small>1 <i class="fas fa-star pr-1"></i></small>
              <div class="flex-fill align-self-lg-center progress">
                <div id="ratings-breakdown-five-stars-progress" class="progress-bar bg-danger" role="progressbar" style="width: 20%" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
              </div>
              <small id="ratings-breakdown-five-stars-text" class="pl-1">- 2</small>
            </div>
          </div>
        </div>
      </div>

      <!-- individual ratings -->
      <div class="row">
        <div class="col-12 mt-3">
          <div class="card">
            <div class="card-header">
              Title of Rating
            </div>
            <div class="card-body">
              <blockquote class="blockquote mb-0">
                <p>Brief description of the rating.</p>
                <footer class="blockquote-footer p-0"><strong>John Smith</strong> rated 5 Stars</footer>
              </blockquote>
            </div>
          </div>
        </div>
        <div class="col-12 mt-3">
          <div class="card">
            <div class="card-header">
              Title of Rating
            </div>
            <div class="card-body">
              <blockquote class="blockquote mb-0">
                <p>Brief description of the rating.</p>
                <footer class="blockquote-footer p-0"><strong>John Smith</strong> rated 1 Stars</footer>
              </blockquote>
            </div>
          </div>
        </div>
        <div class="col-12 mt-3">
          <div class="card">
            <div class="card-header">
              Title of Rating
            </div>
            <div class="card-body">
              <blockquote class="blockquote mb-0">
                <p>Brief description of the rating.</p>
                <footer class="blockquote-footer p-0"><strong>John Smith</strong> rated 3 Stars</footer>
              </blockquote>
            </div>
          </div>
        </div>
      </div>

      <!-- pagination -->
      <nav class="mt-2" aria-label="Page navigation example">
        <ul class="pagination">
          <li class="page-item">
            <a class="page-link" href="#" aria-label="Previous">
              <span aria-hidden="true">&laquo;</span>
              <span class="sr-only">Previous</span>
            </a>
          </li>
          <li class="page-item"><a class="page-link" href="#">1</a></li>
          <li class="page-item"><a class="page-link" href="#">2</a></li>
          <li class="page-item"><a class="page-link" href="#">3</a></li>
          <li class="page-item">
            <a class="page-link" href="#" aria-label="Next">
              <span aria-hidden="true">&raquo;</span>
              <span class="sr-only">Next</span>
            </a>
          </li>
        </ul>
      </nav>
    </div>
  </div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console