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">
<!-- Created by Port Melbourne based Creative team, Michael Daaboul aka digimike and Nathan Keen aka digikeen 29-Mar-2018 -->
<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>A fluid template that works everywhere</title><!-- Fill in!! for accessibility reasons -->
	<!--[if (gte mso 9)|(IE)]>
	<style type="text/css">
		table {border-collapse: collapse !important;}
	</style>
	<![endif]-->
    <style type="text/css">
	
	.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;
}
	
	
			
@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;
    }
}

    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 {
	text-align: center;
	font-size: 0;
	padding-top: 10px;
	padding-bottom: 10px;
}
.three-column .column {
	width: 100%;
	max-width: 200px;
	display: inline-block;
	vertical-align: top;
}
.three-column .contents {
	font-size: 16px;
	text-align: center;
}
.three-column img {
	width: 100%;
	max-width: 180px;
	height: auto;
}
.three-column .text {
	padding-top: 10px;
	font-family: Arial, sans-serif;;
}
        
  </style><style type="text/css">
.datatable {
    margin: 0 auto;
}
.datatable td, .datatable th {
    min-width:100px;
}

@media screen and (min-width: 415px) {
th.hideondesktop {
    display: none!important;
    font-size:1px!important;
    color:#A1FC76!important; /* set to background colour */
    line-height: 1px!important;
    height:0px!important;
    width:0px!important;
    min-width: 0!important;
    padding:0!important;
    margin:0!important;
}

.three-column .column {
max-width: 100% !important;
    }
}
    </style>
</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">
							<!-- START Whitespace -->
							<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;" >Responsive datatable for HTML Emails</p>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<!-- END Whitespace -->
							<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="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:10px;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>
																  <th style="text-align: center;min-width: 100px;" scope="col">Option 1</th>
																</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="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:10px;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">
															  <tbody>
																<tr>
                                                                    <th style="min-width: 100px; mso-hide:all;" scope="row" class="hideondesktop">Header1</th>
                                  <th style="text-align: center;min-width: 100px;" scope="col">Option 2</th>
																</tr>
																<tr>
																  <th style="min-width: 100px; mso-hide:all;" scope="row" class="hideondesktop">Header2</th>
																  <td style="text-align: center;min-width: 100px;">Item2b</td>
																</tr>
																<tr>
																  <th style="min-width: 100px; mso-hide:all;" scope="row" class="hideondesktop">Header3</th>
																  <td style="text-align: center;min-width: 100px;">Item2c</td>
																</tr>
																<tr>
																  <th style="min-width: 100px; mso-hide:all;" scope="row" class="hideondesktop">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="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:10px;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; mso-hide:all;" scope="row" class="hideondesktop">Header1</th>
																  <th style="text-align: center;min-width: 100px;" scope="col">Option 3</th>
																</tr>
																<tr>
																  <th style="min-width: 100px; mso-hide:all;" scope="row" class="hideondesktop">Header2</th>
																  <td style="text-align: center;min-width: 100px;">Item3b</td>
																</tr>
																<tr>
																  <th style="min-width: 100px; mso-hide:all;" scope="row" class="hideondesktop">Header3</th>
																  <td style="text-align: center;min-width: 100px;">Item3c</td>
																</tr>
																<tr>
																  <th style="min-width: 100px; mso-hide:all;" scope="row" class="hideondesktop">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