label { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: start; align-content: center; justify-content: space-between; max-width: 350px; } label > input { max-width: 250px; } .habits-title { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center } .actions { display: grid; grid-template-columns: auto auto; justify-items: center; justify-content: center; } .actions > form { padding-inline: 5px; } thead { font-weight: bold; }