Td { position:relative; } overflows into the table border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Border

Description

Td { position:relative; } overflows into the table border

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">
table<!--  w  ww.j  a  v  a 2s  .  c  o  m-->
 {
   border:11px solid Chartreuse;
}

td
 {
   padding:21px;
   background-color:yellow;
}

.right
 {
   position:relative;
   width:100%;
   height:100%;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lorem</td> 
     <td> 
      <div class="right">
        Lorem ipsum 
      </div> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials