HTML CSS examples for CSS Widget:Table Cell
Split a <td> table element into LEFT and RIGHT justified
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .td-content {<!--from w w w . j av a 2 s . c om--> display:flex; } .child { flex:2; } .right { text-align:right; } table { width:100%; background:white; } </style> </head> <body> <table> <tbody> <tr> <td> <div class="td-content"> <div class="child"> Lorem </div> <div class="child right"> Lorem i </div> </div> </td> </tr> </tbody> </table> </body> </html>