Modify the Font Size of the Contents in a Table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Size

Description

Modify the Font Size of the Contents in a Table

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">
.Myposts td {<!--from  ww w . j  ava 2  s  . c om-->
   font-size:21px;
}
</style> 
 </head> 
 <body> 
  <table width="100%" border="0" class="Myposts" ; align="center" cellpadding="3" cellspacing="1" bgcolor="#686868 "> 
   <tbody> 
    <tr> 
     <td width="6%" align="center" bgcolor="#505050 "> <strong>L</strong> </td> 
     <td width="53%" align="center" bgcolor="#505050 "> <strong>Lorem ipsum dol</strong> </td> 
     <td width="15%" align="center" bgcolor="#505050 "> <strong>Lorem</strong> </td> 
     <td width="13%" align="center" bgcolor="#505050 "> <strong>Lorem i</strong> </td> 
     <td width="13%" align="center" bgcolor="#505050 "> <strong>Lorem ips</strong> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials