make two rows in table 50% 50% - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

make two rows in table 50% 50%

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from ww w. java 2 s .  co  m-->
 <body> 
  <style>
table {
   width:100%;
}

td,
th {
   text-align:left;
   width:51%;
   border:2px solid Chartreuse;
}

.awesome {
   text-align:right;
   padding-right:21px;
   vertical-align:top;
   padding-top:21px;
}

#prostorzaobrazec {
   vertical-align:top;
   padding-top:21px;
}
</style> 
  <table> 
   <tbody> 
    <tr> 
     <th id="left">Lorem ips</th> 
     <th id="right">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibu</th> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials