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 }