I have two buttons that I need to be the same width in my table but one is bigger than the other. They were both the same width but I think I changed something and I can't bring it back
body.products table {
table-layout: fixed;
}
body.products input.add[type="button"] {
color: white;
width: 100%;
background-color: #27af60;
border: none;
letter-spacing: .8px;
}
body.products input.del[type="button"] {
color: white;
width: 100%;
background-color: #c0392b;
border: none;
letter-spacing: .8px;
}
body.products input.submit[type="submit"] {
color: white;
width: 100%;
background-color: gray;
border: none;
letter-spacing: .8px;
}
<!DOCTYPE html>
<html>
<body class="products">
<form action="addtable.php" method="GET">
<table>
<tr>
<td colspan="2">
<input class="add" type="button" value="Add a Product">
</td>
<td colspan="2">
<input class="del" type="button" value="Delete a Product">
</td>
</tr>
<tr>
<td colspan="4">
<input class="submit" name="prod_submit" type="submit" value="Submit Products">
</td>
</tr>
</table>
</form>
</body>
</html>
Add a ProductandDelete a Productto be the same width or the submit button to be as wide as both of them?