table { width: 100%; } table, th, td { border: 1px solid black; } table { border-collapse: collapse; } th,td { padding: 5px; } th { background-color: rgb(127, 255, 138); } #formdiv { display: flex; flex-direction: column; margin-bottom: 20px; } #formdiv button input { margin: 10px; padding: 5px; }