html creat space between table rows code example
Example 1: table add margin between rows
table {
border-collapse: collapse;
border-collapse: separate;
border-spacing: 0 16px;
}
Example 2: how to add space tp table contents html css
table{
border-collapse:separate;
border-spacing: 0 15px;
}
th{
background-color: #4287f5;
color: white;
}
th,td{
width: 150px;
text-align: center;
border: 1px solid black;
padding: 5px;
}
h2{
color: #4287f5;
}