Div larger than table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Div larger than table cell

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
td {<!--from  w  w  w .  j a v  a 2 s  .c  o m-->
   position:relative;
   width:41px;
   height:41px;
   background-color:Chartreuse;
}

div {
   position:absolute;
   top:0px;
   width:0px;
   width:201px;
   height:201px;
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td> 
      <div>
        Lorem ipsum dolor 
      </div> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials