Ankur Sharma

Ankur Sharma

  • NA
  • 21
  • 1.6k

horizontal column

Jan 4 2020 10:46 AM
hi guys im trying to make a table in a website by using notepad/.net but im not able to make horizontal column.
number of columns are increasing in a vertical order.
here is the codeing im using
  1. <style>  
  2. table, th, td {  
  3. border1px solid black;  
  4. border-collapsecollapse;  
  5. }  
  6. th, td {  
  7. padding5px;  
  8. text-alignleft;  
  9. }  
  10. </style>  
  11. </head>  
  12. <body>  
  13. <table style="width:100%">  
  14. <tr>  
  15. <th></th>  
  16. <th></th>  
  17. </tr>  
  18. <tr>  
  19. <td></td>  
  20. <td></td>  
  21. </tr>  
  22. <tr>  
  23. <td></td>  
  24. <td></td>  
  25. </tr>  
  26. </table>  
can anyone help me and tell me what im doing wrong
thanks

Answers (4)