Make text align to the middle and left in the container - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Make text align to the middle and left in the container

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">
html,body {
   width:100%;
   height:100%;
}

table {<!--   w  w w  .jav  a  2s.com-->
   width:81%;
   height:94%;
   margin:0 auto;
   border:2px solid Chartreuse;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>test</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials