CSS Styling Tables - W3Schools
The example below specifies a solid border for <table>, <th>, and <td> elements: Example table, th, td { border: 1px solid; } Try it Yourself » Full-Width Table The table above might seem small in some cases. If you need a table that should span the entire screen (full-width), add width: 100% to the <table> element: Example table { width: 100%; }