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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!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-0 style="display:none" checked>
<input name="option" type=radio id=cbox-1 style="display:none">
<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>
      <div class="arrow-down"></div>
      <div class="arrow-down"></div>
      <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;
    overflow:hidden;
    max-height:0px;
  }

  #cbox-1:checked ~ * .interactive .page1,
  #cbox-2:checked ~ * .interactive .page2,
  #cbox-3a:checked ~ * .interactive .page3a,
  #cbox-3b:checked ~ * .interactive .page3b{
    max-height:none;
    -webkit-animation: fadein 0.5s linear;
    animation: fadein 0.5s linear;
  }
  #cbox-1:not(:checked) ~ * .interactive .page1,
  #cbox-2:not(:checked) ~ * .interactive .page2,
  #cbox-3a:not(:checked) ~ * .interactive .page3a,
  #cbox-3b:not(:checked) ~ * .interactive .page3b{
    max-height:0px;
    -webkit-animation: fadeout 0.5s linear;
    animation: fadeout 0.5s linear;
  }
  /* initial state, all the fadeout  animations will fire (:not(:checked))
    so we need to hide all the pages except for page 1 */
  #cbox-0:checked ~ * .interactive .page{
    height:0px;
  }
  #cbox-0:not(:checked) ~ * .interactive .page{
    height:auto;
  }
  #cbox-0:checked ~ * .interactive .page1{
    max-height:none;
    animation:none;
    height:auto;
  }

  @-webkit-keyframes fadein{
    0%,49%{ opacity:0; max-height:0px;}
    50%{ opacity:0; max-height:none;}
    100%{ opacity:1; max-height:none;}
  }
  @keyframes fadein{
    0%,49%{ opacity:0; max-height:0px;}
    50%{ opacity:0; max-height:none;}
    100%{ opacity:1; max-height:none;}
  }
  @-webkit-keyframes fadeout{
    0%{ opacity:1; max-height:none;}
    49%{ opacity:0; max-height:none;}
    50%,100%{ opacity:0; max-height:0px;}
  }
  @keyframes fadeout{
    0%{ opacity:1; max-height:none;}
    49%{ opacity:0; max-height:none;}
    50%,100%{ opacity:0; max-height:0px;}
  }

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

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console