How To Do Colspan For More Than 1000 Columns In A HTML Table?

As already stated you should use div(s) instead of table :

Just consider <div class = "table-data"></div> as td tag .

Here is the code :

<!DOCTYPE html> <html> <head> <style> #colspan{ border: 3px solid black; padding: 7px; margin-bottom: 10px; } .table-data{ border: 3px solid black; padding: 10px; display: inline; } .table{ display: table; } </style> </head> <body> <div class = "table"> <div id = "colspan"></div> <div> <div class = "table-data"></div> <div class = "table-data"></div> <div class = "table-data"></div> <div class = "table-data"></div> .... <div class = "table-data"></div> <div class = "table-data"></div> </div> </div> </body> </html>

This should solve the problem of more than 1000 columns.

Từ khóa » Html Table Span Columns And Rows