Setting column width to a percentage in Firefox - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Setting column width to a percentage in Firefox

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 . jav a 2s . c  o  m-->
   border: 1px solid #eee;
}
      </style> 
 </head> 
 <body> 
  <table border="0" cellpadding="10" cellspacing="10" style="width: 100%;"> 
   <tbody> 
    <tr> 
     <td style="vertical-align:top;width:75%;"> <img src="https://www.java2s.com/style/demo/Firefox.png" style="width:100%;"> </td> 
     <td> Second column </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials