List not scaling properly

Hello guys. In HTML & CSS series, anyone knows how to solve this? Around 768px to 1020px screen, the badge is not fitting into the grid. I have done exactly what Mosh did, yet this does still happen.


These are the codes:
.block-domain .input-group {
box-shadow: 0 0 30px 20px #e6ebee;
border: 0;
margin: 4rem auto;
max-width: 670px;

.block-domain__prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 6rem);
  font-size: 2rem;
  font-weight: 600;
  justify-items: center;
  max-width: 700px;
  margin: 0 auto;

@media screen and (min-width: 768px) {
  .block-domain__prices {
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));

Do you have white-space: nowrap; in your .badge class?


ow. Thanks. I actualy have nowarp in my .bagde class but I mistyped it to “no-wrap”.