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

              
                <!DOCTYPE html>
<html>
<head>
<!-- Interactive style block at bottom of body to reduce chance of truncation by email clients -->

</head>
<body>


<table width="100%" cellpadding=0 cellspacing=0>
<tr><td align=center>

<div class="header" style="font-family:Helvetica,Arial;font-size:30px;padding:10px;">Interactive Quiz</div>


<!-- Form tag required for Samsung -->
<form>
<!--[if !mso]><!-- -->
<!-- remove checked from cbox-support to see fallback content in regular browser -->
<input type=checkbox class="cbox-support" style="display:none" checked>
<input name="option" type=radio id=cbox-1 style="display:none" checked>
<input name="option" type=radio id=cbox-2 style="display:none">
<input name="option" type=radio id=cbox-3a style="display:none">
<input name="option" type=radio id=cbox-3b style="display:none">
<!--<![endif]-->

<div class="content-wrapper">


<!-- FALLBACK -->
  <div class="fallback">
    <table width="100%"><tr><td style="font-family:Helvetica,Arial;font-size:30px;padding:100px 20px;background-color:#dddddd;" align=center>
    Fallback content
    </td></tr></table>
  </div>
<!-- end of FALLBACK -->


<!-- INTERACTIVE/KINETIC -->
  <!--[if !mso]><!-- -->
  <div class="interactive" style="display:none;max-height:0;overflow:hidden;">  
  <div class="page-container">
    <div class="page page1">
      Page 1<BR><BR>
      <label class="ibutton" for="cbox-2">Start</label>
    </div>

    <div class="page page2">
      Page 2<BR><BR>
      <b>Pick one Option</b><BR><BR>
      <label class="ibutton" for="cbox-3a">Option A</label>
      <label class="ibutton" for="cbox-3b">Option B</label>
    </div>

    <div class="page page3a">
      Page 3a<BR><BR>
      <b>You picked Option A</b><BR><BR>
      <label class="ibutton reset" for="cbox-2">Go back</label>
      <label class="ibutton reset" for="cbox-1">Start again</label>
    </div>

    <div class="page page3b">
      Page 3b<BR><BR>
      <b>You picked Option B</b><BR><BR>
      <label class="ibutton reset" for="cbox-2">Go back</label>
      <label class="ibutton reset" for="cbox-1">Start again</label>
    </div>

  </div>
  </div>
  <!--<![endif]-->
<!-- End of Interactive/Kinetic -->

</div> <!-- end of content wrapper -->

</form>

</td></tr></table>


<!-- 
 Media query to test interactive capability
 Remove the first style block from web version.
-->
<style>
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
    .cbox-support:checked ~ div .fallback {
        display:none;
    }
    .cbox-support:checked ~ div .interactive{
        display:block!important;
        max-height:none!important;
    }
    /* 
    Selective blocking for non supported clients.
    - AOL does not support the for="" attribute in labels
    */
    input[class~="aolmail_cbox-support"]:checked ~ div .fallback{ 
      display:block!important; 
    }
    input[class~="aolmail_cbox-support"]:checked ~ div .interactive{
      display:none !important;
    }
  }
</style>

<!-- Keep this style block in web version -->
<style>
  input{
    display:none;
  }
  .content-wrapper{
    font-family: Helvetica, Arial, sans-serif;
    font-size:30px;
  }

  .ibutton{
    background-color:#d9534f;
    color:#ffffff;
    cursor:pointer;
    display:inline-block;
    margin:20px 20px;
    padding:10px 20px;
    border-radius:5px;
  }
  .ibutton.reset{
    background-color:#ffffff;
    color:#555555;
    border:2px solid #555555;
  }
  .interactive{
    position:relative;
  }
  .page-container{
    padding:100px 20px;  
    background-color:#dddddd;
  }
  .page{
    text-align:center;
    display:none;
    overflow:hidden;
  }

  #cbox-1:checked ~ * .interactive .page1,
  #cbox-2:checked ~ * .interactive .page2,
  #cbox-3a:checked ~ * .interactive .page3a,
  #cbox-3b:checked ~ * .interactive .page3b{
    display:block;
    -webkit-animation: fadein 0.5s linear;
    animation: fadein 0.5s linear;
  }

  @-webkit-keyframes fadein{
    0%,45%{ opacity:0; }
    100%{ opacity:1; }
  }
  @keyframes fadein{
    0%,45%{ opacity:0; }
    100%{ opacity:1; }
  }


</style>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console