Formatting html input button to fit (vertically) a table cell with a rowspan - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Formatting html input button to fit (vertically) a table cell with a rowspan

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from ww  w.  j  a  v a 2s.co  m-->
 <body> 
  <table border="1"> 
   <tbody> 
    <tr> 
     <td> <input type="button" class="button" value="1"> </td> 
     <td> <input type="button" class="button" value="2"> </td> 
     <td> <input type="button" class="button" value="3"> </td> 
     <td> <input type="button" class="button" value="-"> </td> 
     <td rowspan="2" height="100px"> <input type="button" class="button" value="=" style="width:100%;height:100%"> </td> 
    </tr> 
    <tr> 
     <td colspan="3"> <input type="button" class="button" value="0" style="width:100%;"> </td> 
     <td> <input type="button" class="button" value="+"> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials