HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> div{ border: 1px solid black; width: 100%; table-layout: fixed; } </style> </head> <body> <h1>CSS display: table-row;</h1> <div style="display: table;"> <div style="display: table-row;"> <div style="display: table-cell;"> Joe Root </div> <div style="display: table-cell;"> 30 </div> </div> <div style="display: table-row;"> <div style="display: table-cell;"> David warner </div> <div style="display: table-cell;"> 35 </div> </div> </div> <p><strong>Note</strong>: This table represents the name and age.</p> </body> </html>
OUTPUT
×

Save as Private