cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <div id="page">
  <div id="content">
    <section>
    <h2>Singular Buttons<h2>
      <button type="button" onclick="#">Boop</button>
      <br />
      <button type="button" onclick="#">Booma booma booma bomp</button>
    </section>

  </div>
<div id="content">
  <section>
    <h2>Pagination</h2>
      <div class="navigation pagination">
        <li><a href="#"><<span>This Is Utterly Ridiculous</span></a></li>
        <li><a href="#">1.3.1 <span>Errors</span></a></li>
        <li><a href="#">1.3.2 <span>Local Truncation Error</span></a></li>
        <li><a href="#">1.3.3 <span>Local Order of Accuracy</span></a></li>
        <li><a href="#">1.3.4 <span>Definition of Multi-Step Methods</span></a></li>
        <li><a href="#">1.3.5 <span>Example of Most Accurate Multi-Step Method</span></a></li>
        <li><a href="#">><span>Choosing Integers</span></a></li>
      </div>
      <p>Pagination is done as an unordered list.</p>
  </section>
  <section>
    <h2>An example with a modest number of sections</h2>
      <div class="navigation pagination">
        <li><a href="#"><<span>Everything begins</span></a></li>
        <li><a href="#">4.4.1 <span>Repetitions & Binomial Theorem: Overview</span></a></li>
        <li><a href="#">4.4.2 <span>Generalized Counting Rules: Video</span></a></li>
        <li><a href="#">4.4.3 <span>Choosing Integers</span></a></li>
        <li><a href="#">4.4.4 <span>Two Pair Poker Hands: Video</span></a></li>
        <li><a href="#">4.4.5 <span>Counting Poker Hands</span></a></li>
        <li><a href="#">4.4.6 <span>Binomial Theorem: Video</span></a></li>
        <li><a href="#">4.4.7 <span>Binomial Coefficients</span></a></li>
        <li><a href="#">4.4.8 <span>Multinomial Theorem: Video</span></a></li>
        <li><a href="#">4.4.9 <span>Balloon Permutations</span></a></li>
        <li><a href="#">4.4.10 <span>Counting Answers</span></a></li>
        <li><a href="#">4.4.11 <span>Counting Subsets</span></a></li>
        <li><a href="#">4.4.12 <span>Balls and Bins</span></a></li>
        <li><a href="#">4.4.13 <span>Missississippi</span></a></li>
        <li><a href="#">4.4.14 <span>Counting Donuts</span></a></li>
        <li><a href="#">4.4.15 <span>Basketball Teams</span></a></li>
        <li><a href="#">4.4.16 <span>Divisibility</span></a></li>
        <li><a href="#">4.4.17 <span>This Page Intentionally Left Blank</span></a></li>
        <li><a href="#">><span>This Is Utterly Ridiculous</span></a></li>
      </div>
      <p>Pagination is done as an unordered list.</p>
  </section>
  <section>
    <h2>Back/Continue</h2>
    <p>
      <div class="navigation progress">
        <button type="button" onclick="#">Back<span>This Page Accidentally Left Blank</span></button>
        <button type="button" onclick="#">Continue<span>This Page Intentionally Right Blank</span></button>
      </div>
    </p>
  </section>
</div><!-- content -->

<div id="footer">

</div> <!-- footer -->


</div> <!--page -->
            
          
!
            
              /* Basic markup - unnecessary when integrated */
  body {
    background-color: rgb(225, 225, 225);
}
    
    section {
    background-color: rgb(255, 255, 255);
    width: auto;
    padding: 3em;
    margin: auto;
    margin-bottom: 3em;
  }

  h2 {
    clear:both;
    }

  /* Here be important markup */

/* Experimental Markup - not needed */

br {
  margin-bottom: 2em;
}

.long-name {display: none;}

/* General Button Style */

button, .navigation li {
  /* This targets all buttons on the site, as well as list items within a navigation class, and styles them the same way. */
  border: 1px solid rgb(199,192,183);
  background-color: rgb(229,222,213);
  color: rgb(88, 86, 84);
  background: repeating-linear-gradient(
    135deg,
    rgb(229,222,213),
    rgb(229,222,213) 2px,
    rgb(232,225,216) 2px,
    rgb(232,225,216) 4px
  );
  margin: .4em;
  text-decoration: none;
  border-radius: .4em;
  box-shadow: 0px 1px 2px rgba(0,0,0,.2);
}

button:active, .navigation li:active {
  /* This adds some animation when the button or list item link is interacted with */
  background: repeating-linear-gradient(
    135deg,
    rgb(219,212,203),
    rgb(219,212,203) 2px,
    rgb(222,215,206) 2px,
    rgb(222,215,206) 4px
  );
  box-shadow: 0px 1px 0px rgba(0,0,0,.1);
}

.navigation ul {
  /* Shows the list as a table row */
  display: table-row;
  padding: 0;
  margin: 0;
}

/* Styles consistent with Navigation Buttons and List Items */
.navigation button, .navigation li {
  margin:0;
  font-size: .9em;
  border-width: 2px;
  border-radius: 0em;
  border-left-width: 1px;
  border-right-width: 1px;
}

.navigation button {
  /* smooshes the back/continue buttons together */
  float: left;
}

.navigation li {
  /* Displays the list items as cells that fit to the overall window size */
  list-style-type: none;
  width: 100%;
  display: table-cell;
  white-space: nowrap;
  overflow: hidden;
}

.navigation li a {
  display: block;
  text-decoration: none;
  color: rgb(88, 86, 84);
}

button, .navigation li a {
  padding: .5em .6em;
}

.navigation button:first-of-type, .navigation li:first-of-type {
  /* Styles the first button or list item, typically previous or back navigation.  */
  border-top-left-radius: .4em;
  border-bottom-left-radius: .4em;
  border-left-width: 2px;
}

.navigation button:last-of-type, .navigation li:last-of-type {
  /* Styles the last button or list item, typically forward or next navigation.  */
  border-top-right-radius: .4em;
  border-bottom-right-radius: .4em;
  border-right-width: 2px;
}

/* Pagination Area Style */

.navigation.pagination {
  /* Groups of buttons to progress through sections */
  text-align: center;
  margin: 1em 0;
  display:table;
  table-layout: fixed;
  width: 100%;
  clear: both;
}

.navigation.pagination span, button span {
  display: none;
}

.navigation.pagination li:hover span, button:hover span {
  display: block;
  position: absolute;
  margin-top: -5em;
  margin-left: -1em;
  width: 19em;
  text-align: center;
  background-color: rgba(229,222,213,.9);
  background: repeating-linear-gradient(
    135deg,
    rgb(229,222,213),
    rgb(229,222,213) 2px,
    rgb(232,225,216) 2px,
    rgb(232,225,216) 4px
  );
  border: 1px solid rgb(88, 86, 84);
  padding: .5em;
  border-radius: .2em;
  box-shadow: 0px 3px 2px rgba(88, 86, 84,.2);
  white-space: normal;
  overflow: visible;

}

/* Progress Button Area Style */

.navigation.progress  {
  /* Back/Continue buttons. */
  float: right;
  clear: both;
  margin-right: 3em;
}

            
          
!
            
              //    $("document").ready(function() {})

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console