cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<title></title>

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

<table width="600" border="0" cellspacing="0" cellpadding="0" align="center" class="mobilewrapper"><tr><td>

<br /><br /><b>TABLE ALIGN METHOD</b><br /><br /> 
<table width="600" border="0" cellspacing="0" cellpadding="0" class="mobilewrapper" align="center">
  <tr>
    <td>
    <table width="200" border="0" cellspacing="0" cellpadding="0" class="w320" align="left">
      <tr>
        <td width="200" class="w320" height="20" bgcolor="#CCCCCC" align="center">A</td>
      </tr>
    </table>
    <table width="200" border="0" cellspacing="0" cellpadding="0" class="w320" align="left">
      <tr>
        <td width="200" class="w320" height="20" bgcolor="#00CCFF" align="center">B</td>
      </tr>
    </table>
    <table width="200" border="0" cellspacing="0" cellpadding="0" class="w320">
      <tr>
        <td width="200" class="w320" height="20" bgcolor="#FFFF00" align="center">C</td>
      </tr>
    </table>
    </td>
  </tr>
</table>

<br /><br /><b>SPLIT COLUMNS METHOD</b><br /><br />
<table width="600" border="0" cellspacing="0" cellpadding="0" class="mobilewrapper" align="center">
  <tr>
    <td width="200" height="20" bgcolor="#CCCCCC" align="center" class="colsplit">A</td>
    <td width="200" height="20" bgcolor="#00CCFF" align="center" class="colsplit">B</td>
    <td width="200" height="20" bgcolor="#FFFF00" align="center" class="colsplit">C</td>
  </tr>
</table>

<br /><br /><b>SPLIT COLUMNS METHOD NO DOCTYPE NEEDED</b><br /><br />
<table width="600" border="0" cellspacing="0" cellpadding="0" class="mobilewrapper" align="center">
  <tr>
    <th width="200" height="20" bgcolor="#CCCCCC" align="center" class="colsplit" style="font-weight:normal; text-align:XXX;">A</th>
    <th width="200" height="20" bgcolor="#00CCFF" align="center" class="colsplit" style="font-weight:normal; text-align:XXX;">B</th>
    <th width="200" height="20" bgcolor="#FFFF00" align="center" class="colsplit" style="font-weight:normal; text-align:XXX;">C</th>
  </tr>
</table>

<br /><br />
<b>SPLIT COLUMNS METHOD - NO DOCTYPE NEEDED - REVERSING</b><br />
<br />
<table width="600" border="0" cellspacing="0" cellpadding="0" class="mobilewrapper" align="center">
  <tr>
    <th width="200" height="20" bgcolor="#CCCCCC" align="center" class="colsplit-middle" style="font-weight:normal; text-align:XXX;">A</th>
    <th width="200" height="20" bgcolor="#00CCFF" align="center" class="colsplit-bottom" style="font-weight:normal; text-align:XXX;">B</th>
    <th width="200" height="20" bgcolor="#FFFF00" align="center" class="colsplit-top" style="font-weight:normal; text-align:XXX;">C</th>
  </tr>
</table>



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



</body>
</html>

            
          
!
            
              
@media screen and (max-device-width: 600px), screen and (max-width: 600px) {

.mobilewrapper{width:100%!important; height:auto!important;}
.w320{width:320px!important; height:auto!important;}
.colsplit{width:320px!important; float:left!important; display:block!important;}
.colsplit-top{width:320px!important; display:table-caption !important;}	
.colsplit-middle{width:320px!important; display:table-header-group!important;}	
.colsplit-bottom{width:320px!important; display:table-footer-group!important;}	


}
            
          
!
            
              /* This is HTML email code, web developers should step away from the keyboard and take 5. This is a practical illustration for an Action Rocket Lab post: http://labs.actionrocket.co*/

/* Updated on 11/06/15 to illustrate a column splitting method that doesn't necessitate doctype */
            
          
!
999px
Loading ..................

Console