Answers for "border only part of cell table css"

1

html table with separated column without outer border

<!DOCTYPE html>
<html lang="en">
<head>
<style>
th, td {
  border: 1px solid black;
}
</style>
</head>
<body>

<table style="width:100%">
  <tr>
    <th>Firstname</th>
    <th>Lastname</th> 
    <th>Age</th>
  </tr>
</table>

</body>
</html>
Posted by: Guest on March-15-2020

Browse Popular Code Answers by Language