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

              
                
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if !mso]><!-->
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="format-detection" content="telephone=no" /> <!-- Disable telephone linking in iOS -->
<meta name="x-apple-disable-message-reformatting" />
<title></title>
<!--[if (gte mso 9)|(IE)]>
<style type="text/css">
	table {border-collapse: collapse !important;}
</style>
<![endif]-->
<style>

.appleLinksBlack a {
color: #000000!important; 
text-decoration: none!important;
}

.appleLinksWhite a {
color: #FFFFFF !important; 
text-decoration: none!important;
}

#outlook a {
padding:0;
}


.ReadMsgBody{
width:100%;
} 	
.ExternalClass{
width:100%;
}


.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}


table td {
border-collapse: collapse;
}


table {
border-collapse: collapse; 
mso-table-lspace:0pt; 
mso-table-rspace:0pt; 
}


img{
-ms-interpolation-mode:bicubic;
}

body {
margin: 0;
padding: 0;
min-width: 100%;
background-color: #ffffff;
}
table {
border-spacing: 0;
font-family: Arial, sans-serif;;
color: #333333;
}
td {
padding: 0;
}

img {
border: 0;
}                   
.wrapper {
width: 100%;
table-layout: fixed;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

.webkit {
max-width: 600px;
}
.outer {
margin: 0 auto;
width: 100%;
max-width: 600px;
}
.full-width-image img {
width: 100%;
max-width: 600px;
height: auto;
}
.inner {
padding: 10px;
}
p {
margin: 0;
}
a {
color: blue;
text-decoration: underline;
}
.h1 {
font-size: 21px;
font-weight: bold;
margin-bottom: 18px;
}
.h2 {
font-size: 18px;
font-weight: bold;
margin-bottom: 12px;
}


.one-column .contents {
text-align: left;
}
.one-column p {
font-size: 16px;
Margin-bottom: 10px;
}

.two-column {
text-align: center;
font-size: 0;
}
.two-column .column {
width: 100%;
max-width: 300px;
display: inline-block;
vertical-align: top;
}
.contents {
width: 100%;
}
.two-column .contents {
font-size: 16px;
text-align: left;
}
.two-column img {
width: 100%;
max-width: 280px;
height: auto;
}
.two-column .text {
padding-top: 10px;
}

.three-column,.four-column {
text-align: center;
font-size: 0;
padding-top: 10px;
padding-bottom: 10px;
}
.three-column .column,.four-column .column {
width: 100%;
max-width: 200px;
display: inline-block;
vertical-align: top;
}

.three-column .contents,.four-column .contents {
font-size: 16px;
text-align: center;
}
.three-column img,.four-column img {
width: 100%;
max-width: 180px;
height: auto;
}
.three-column .text,.four-column .text {
padding-top: 10px;
font-family: Arial, sans-serif;
}


@media screen and (max-width: 414px) {
	.two-column .column,
	.three-column .column {
		max-width: 100% !important;
	}
	.two-column img {
		max-width: 100% !important;
	}
	.three-column img {
		max-width: 50% !important;
	}
}

@media screen and (min-width: 415px) and (max-width: 620px) {
	.three-column .column {
		max-width: 33% !important;
	}
	.two-column .column {
		max-width: 50% !important;
	}
}
</style>
<!-- START Datatable CSS -->
<style>
.datatable {
    margin: 0 auto;
}
.three-column .datatable td,.three-column  .datatable th {
    min-width:100px;
}
</style>
<!-- END Datatable CSS -->
</head>
<body style="margin:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;min-width:100%;background-color:#A1FC76;" class="body">
	<!-- /////////////////////////////////////
	////////  START 3 Column Datatable  /////////
	////////////////////////////////////////-->
	<center class="wrapper" style="width:100%;table-layout:fixed;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%; background-color:#A1FC76">
		<table width="100%" bgcolor="#A1FC76" border="0" cellspacing="0" cellpadding="0" role="presentation">
			<tr>
				<td width="100%" align="center">
					<div class="webkit" style="max-width:600px;" >
						<!-- START Outlook max-width fix -->
						<!--[if (gte mso 9)|(IE)]>
						<table width="600" align="center" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;" role="presentation">
							<tr>
								<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;border-collapse:collapse;" >
								<![endif]-->
						<!-- END Outlook max-width fix -->
						<!-- START Outermost Table Wrap -->
						<table class="outer" align="center" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;Margin:0 auto;width:100%;max-width:600px;" role="presentation">
							<tr>
								<td class="one-column" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;border-collapse:collapse;">
									<table width="100%" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;" role="presentation">
										<tr>
											<td class="inner contents" style="border-collapse:collapse;padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;text-align:left;">
												<p style="Margin:0;font-size:16px;Margin-bottom:10px;" >This responsive table shows complex tabular data. It will show horizontally on desktops and vertically on mobiles. The headers repeat to accommodate mobiles. The intention is to add code to hide the repeat on desktops email clients.</p>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td class="three-column" style="padding-right:0;padding-left:0;border-collapse:collapse;text-align:center;font-size:0;padding-top:10px;padding-bottom:10px;" >
									<!--[if (gte mso 9)|(IE)]>
									<table width="100%" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;" role="presentation">
									<tr>
									<td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;border-collapse:collapse;" >
									<![endif]-->
									<!-- ///////////////////////////////////////////
									////////   START First Column Content 1/3  ////////
									/////////////////////////////////////////////-->
                                    <center style="display:inline-block">
									<table class="data column" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;width:100%;display:inline-block;vertical-align:top;" role="presentation">
										<tr>
											<td class="inner" style="border-collapse:collapse;padding-top:10px;padding-bottom:58px;padding-right:0px;padding-left:0px;" >
												<table class="contents" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;width:100%;font-size:16px;text-align:center;" role="presentation">
													<tr>
														<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;border-collapse:collapse;" >
															<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:none;" class="datatable">
															  <tbody>
																<tr>
                                                                    <th style="min-width: 100px;" scope="row">Header1</th>
																  <td style="text-align: center;min-width: 100px;">Item1a</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header2</th>
																  <td style="text-align: center;min-width: 100px;">Item1b</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header3</th>
																  <td style="text-align: center;min-width: 100px;">Item1c</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header4</th>
																  <td style="text-align: center;min-width: 100px;">Item1d</td>
																</tr>
															  </tbody>
															</table>

														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
                                    </center>
									<!--[if (gte mso 9)|(IE)]>
									</td><td width="100" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;border-collapse:collapse;" >
									<![endif]-->
									<!-- ///////////////////////////////////////////
									////////   START Second Column Content 2/3  ////////
									/////////////////////////////////////////////-->
                                    <center style="display:inline-block">
									<table class="data column" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;width:100%;display:inline-block;vertical-align:top;" role="presentation">
										<tr>
											<td class="inner" style="border-collapse:collapse;padding-top:10px;padding-bottom:58px;padding-right:0px;padding-left:0px;" >
												<table class="contents" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;width:100%;font-size:16px;text-align:center;" role="presentation">
													<tr>
														<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;border-collapse:collapse;"  class="rps_a113">
															
															<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:none;"  class="datatable hideondesktop outlookcomhide">
															  <tbody>
																<tr>
                                                                    <th style="min-width: 100px;" scope="row">Header1</th>
																  <td style="text-align: center;min-width: 100px;">Item2a</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header2</th>
																  <td style="text-align: center;min-width: 100px;">Item2b</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header3</th>
																  <td style="text-align: center;min-width: 100px;">Item2c</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header4</th>
																  <td style="text-align: center;min-width: 100px;">Item2d</td>
																</tr>
															  </tbody>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
                                    </center>
									<!--[if (gte mso 9)|(IE)]>
									</td><td width="100" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;border-collapse:collapse;" >
									<![endif]-->
									<!-- ///////////////////////////////////////////
									////////   START Third Column Content 3/3  ////////
									/////////////////////////////////////////////-->
                                    <center style="display: inline-block">
									<table class="data column" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;width:100%;display:inline-block;vertical-align:top;" role="presentation">
										<tr>
											<td class="inner" style="border-collapse:collapse;padding-top:10px;padding-bottom:58px;padding-right:0px;padding-left:0px;">
												<table class="contents" style="border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border-spacing:0;font-family:Arial, sans-serif;color:#333333;width:100%;font-size:16px;text-align:center;" role="presentation">
													<tr>
														<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;border-collapse:collapse;">
															<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:none;" class="datatable hideondesktop outlookcomhide">
															  <tbody>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header1</th>
																  <td style="text-align: center;min-width: 100px;">Item3a</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header2</th>
																  <td style="text-align: center;min-width: 100px;">Item3b</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header3</th>
																  <td style="text-align: center;min-width: 100px;">Item3c</td>
																</tr>
																<tr>
																  <th style="min-width: 100px;" scope="row">Header4</th>
																  <td style="text-align: center;min-width: 100px;">Item3d</td>
																</tr>
															  </tbody>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
                                    </center>
									<!--[if (gte mso 9)|(IE)]>
									</td>
									</tr>
									</table>
									<![endif]-->
								</td>
							</tr>

						</table>
						<!-- END Outlook max-width fix -->
						<!--[if (gte mso 9)|(IE)]>
						</td>
						</tr>
						</table>
						<![endif]-->
					</div>
				</td>
			</tr>
		</table>
	</center>
	<!-- ///////////////////////////////////////
	////////  END 3 Column Datatable  /////////
	////////////////////////////////////////-->
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console