Overlapping tables / negative top position in HTML email - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Position

Description

Overlapping tables / negative top position in HTML email

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/zurb-ink/1.0.5/ink.css"> 
  <style id="compiled-css" type="text/css">
.background {
   background-color:Chartreuse;
   width:531px;
   height:501px;
}

.height-fix {
   height:201px;
}
</style> <!--  ww w. j  av a2  s . com-->
 </head> 
 <body> 
  <div class="height-fix"> 
   <table class="container twelve header"> 
    <tbody> 
     <tr> 
      <td> <img width="580" height="300" src="https://www.java2s.com/style/demo/Safari.png" alt=""> </td> 
      <td class="expander"></td> 
     </tr> 
    </tbody> 
   </table> 
  </div> 
  <table class="container eleven content"> 
   <tbody> 
    <tr> 
     <td> 
      <table class="row"> 
       <tbody> 
        <tr> 
         <td> 
          <div class="background"></div> </td> 
         <td class="expander"></td> 
        </tr> 
       </tbody> 
      </table> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials