Make css of an overflowing div in a table cell important - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Make css of an overflowing div in a table cell important

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 {<!--  www .j a va  2  s  .  co  m-->
   width:0px;
   table-layout:fixed;
}

td {
   width:51px;
   height:51px;
   overflow:visible;
}

#td1 {
   background-color:Chartreuse;
}

#td2 {
   background-color:yellow;
}

#div2 {
   width:201px;
   height:21px;
   background-color:blue;
   cursor:pointer;
   position:relative;
   z-index:2
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td id="td2"> 
      <div id="div2"></div> </td> 
     <td id="td1"></td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials