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-header-group;</h1> <div style="display: table;"> <div style="display: table-header-group;"> <div style="display: table-cell;"> Name </div> <div style="display: table-cell;"> Age </div> </div> <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> </body> </html>
OUTPUT
×

Save as Private