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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Add to Cart - Email</title>



<style>

* { 
  font-family: Helvetica, sans-serif; 
  line-height: 100%;
  margin:0;
  padding:0;
}
body {
  -webkit-text-size-adjust:100%; 

}

.headblue,
.headpink,
.headblack{
  width:35px;
  height:25px;
  margin-bottom:10px;
  margin-left:20px;
  background-color:#333333;
  float: left;
  display: inline;
  border:2px solid #ffffff;
  border-radius: 5px;
  cursor: pointer;
}

.headblue{
  margin-left:20px;
  background-color:#7b86c8;
}

.headpink{
  background-color:#ff5a6d;
}

#tab1:checked + span .contentblue,
#tab2:checked + span .contentpink,
#tab3:checked + span .contentblack
{
  display:block !important;
  max-height: none !important;
  height: auto !important;
}

#tab1:checked + span .headblue,
#tab2:checked + span .headpink,
#tab3:checked + span .headblack{
  height:25px !important; 
  border:2px solid #aaaaaa;
}


form.formcheck .tabcheck:checked + .container{
  display:block!important;  
  height: 363px !important;
  max-height: 363px !important;
}

form.formcheck .tabcheck:checked + .fallback{
  display:none !important;
  display:none;
  max-height: 0px;
  height: 0px;
  overflow: hidden;
}



.tab, .tabcheck {
  display: none;
  display: none !important;
  height:0px;
  visibility:hidden;
}



/*****
GMAIL
*****/

* [lang~=x-headblue],
* [lang~=x-headpink],
* [lang~=x-headblack]{
  width:35px;
  height:25px;
  margin-bottom:10px;
  margin-left:20px;
  background-color:#333333;
  float: left;
  display: inline;
  border:2px solid #ffffff;
  border-radius: 5px;
  cursor: pointer;
}

* [lang~=x-headblue]{
  margin-left:20px;
  background-color:#7b86c8;
}

* [lang~=x-headpink]{
  background-color:#ff5a6d;
}

* [lang="x-tab1"]:checked + span [lang~="x-contentblue"],
* [lang="x-tab2"]:checked + span [lang~="x-contentpink"],
* [lang="x-tab3"]:checked + span [lang~="x-contentblack"]
{
  display:block !important;
  max-height: none !important;
  height: auto !important;
}

* [lang="x-tab1"]:checked + span [lang~="x-headblue"],
* [lang="x-tab2"]:checked + span [lang~="x-headpink"],
* [lang="x-tab3"]:checked + span [lang~="x-headblack"]{
  height:25px !important; 
  border:2px solid #aaaaaa;
}

* form[lang="x-formcheck"] [lang="x-tabcheck"]:checked + [lang="x-container"]
{
  display:block !important;  
  height: 363px !important;
  max-height: 363px !important;
}

* form[lang="x-formcheck"] [lang="x-tabcheck"]:checked + [lang="x-fallback"]
{
  display:none !important;
  display:none;
  max-height: 0px;
  height: 0px;
  overflow: hidden;
}



</style>
</head>
 
<body bgcolor="#fcfcfc">
<table width="100%" height="100%">
  <tr>
    <td></td>
    <td bgcolor="#fcfcfc" align="center">
      <div>
      <table width="200">
        <tr>
          <td><BR>


<!--[if !mso]><!-- -->

<form class="formcheck" lang="x-formcheck" method="GET" action="https://www.amazon.com/gp/aws/cart/add.html" target=_new>
<input type=radio class="tabcheck" lang="x-tabcheck" style="display:none !important;" checked>
<div class="container" lang="x-container" style="display:none;height:0px;max-height:0px; overflow:hidden;">


<label><input type=radio name="ASIN.1" lang="x-tab1" class="tab" id="tab1" style="display:none !important;" value="B00MUQ9E7C" checked><span><div lang="x-headblue" class="headblue"></div>
<label><input type=radio name="ASIN.1" lang="x-tab2" class="tab" id="tab2" style="display:none !important;" value="B00MUQ9DVO"><span><div lang="x-tabhead x-headpink" class="headpink"></div>

<label><input type=radio name="ASIN.1" lang="x-tab3" class="tab" id="tab3" style="display:none !important;" value="B00MUQ9DLO"><span><div lang="x-headblack" class="headblack"></div>
<div class="contentblack" lang="x-contentblack" style="height:0px;max-height:0px;overflow:hidden;clear:left;">
<table cellpadding="0" cellspacing="0">
    <tr>
    <td style="border:1px solid #888888"><a href="http://www.amazon.com/dp/B00MUQ9DLO/"><img src="http://freshinbox.com/assets/examples/add-to-cart/_black-B00MUQ9DLO.jpg" width="200" height="200" border=0></a></td>
    </tr>
    <tr>
        <td width="200" align="center" valign="top" style="padding: 16px; background: #555555; font-family: Helvetica; font-size: 15px; line-height: 100%; color: #ffffff;">
            Black
        </td>
    </tr>
</table>
</div></span></label>

<div class="contentpink" lang="x-contentpink" style="height:0px;max-height:0px;overflow:hidden;clear:left;">
<table cellpadding="0" cellspacing="0">
    <tr>
    <td style="border:1px solid #888888"><a href="http://www.amazon.com/dp/B00MUQ9DVO/"><img src="http://freshinbox.com/assets/examples/add-to-cart/_pink-B00MUQ9DVO.jpg" width="200" height="200" border=0></a></td>
    </tr>
    <tr>
        <td width="200" align="center" valign="top" style="padding: 16px; background: #555555; font-family: Helvetica; font-size: 15px; line-height: 100%; color: #ffffff;">
            Coral / Light Pink
        </td>
    </tr>
</table>
</div>
</span></label>

<div class="contentblue" lang="x-contentblue" style="height:0px;max-height:0px;overflow:hidden;clear:left;">
<table cellpadding="0" cellspacing="0">
    <tr>
    <td style="border:1px solid #888888"><a href="http://www.amazon.com/dp/B00MUQ9E7C/"><img src="http://freshinbox.com/assets/examples/add-to-cart/_blue-B00MUQ9E7C.jpg" width="200" height="200" border=0></a></td>
    </tr>
    <tr>
        <td width="200" align="center" valign="top" style="padding: 16px; background: #555555; font-family: Helvetica; font-size: 15px; line-height: 100%; color: #ffffff;">
            Periwinkle / Haze Blue
        </td>
    </tr>
</table>
</div>
</span></label>
<BR>
Quantity: <select name="Quantity.1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select><BR><BR>

<input type="hidden" name="AssociateTag" value="storeid-20"/> 
<input type="hidden" name="SubscriptionId" value="[AWSAccessKeyId]"/> 

<input type="image" name="add" value="Buy from Amazon.com" border="0" alt="Buy from Amazon.com" src="http://images.amazon.com/images/G/01/associates/add-to-cart.gif"> 

</div>
</form>
<!--<![endif]-->




<form class="formcheck" lang="x-formcheck">
<!--[if !mso]><!-- -->
<input type=radio class="tabcheck" lang="x-tabcheck" style="display:none !important;mso-hide:all" checked>
<!--<![endif]-->
<div class="fallback" lang="x-fallback" style="color:#555555">
  <!-- Fallback content -->
  <table width=200 border=0 cellpadding=0 cellspacing=0 style="border:1px solid #777777;">
  <tr><td width=60 style="padding:5px;">
  <a href="http://www.amazon.com/dp/B00MUQ9E7C/"><img src="http://freshinbox.com/assets/examples/add-to-cart/_blue-B00MUQ9E7C.jpg" width="60"  border=0></a></td>
  <td align="center" valign="center" style="background: #555555; font-family: Helvetica; font-size: 13px; line-height: 100%; color: #ffffff;padding:5px;">
              Periwinkle / Haze Blue
  </td></tr>
  <tr><td width=60 style="padding:5px;">
  <a href="http://www.amazon.com/dp/B00MUQ9DVO/"><img src="http://freshinbox.com/assets/examples/add-to-cart/_pink-B00MUQ9DVO.jpg" width="60"  border=0></a></td>
  <td align="center" valign="center" style="background: #555555; font-family: Helvetica; font-size: 13px; line-height: 100%; color: #ffffff;padding:5px;">
              Coral / Light Pink
  </td></tr>
  <tr><td width=60 style="padding:5px;">
  <a href="http://www.amazon.com/dp/B00MUQ9DLO/"><img src="http://freshinbox.com/assets/examples/add-to-cart/_black-B00MUQ9DLO.jpg" width="60"  border=0></a></td>
  <td align="center" valign="center" style="background: #555555; font-family: Helvetica; font-size: 13px; line-height: 100%; color: #ffffff;padding:5px;">
              Black
  </td></tr>
  </table>
</div>
</form>


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





</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console