FrontEnd.ro logo
CSS Container Queries

.parent {
  container-type: inline-size;
}

@container (max-width: 500px) {
  .child {
    /* ... */
  }
}