Container query issue

Hi Am building a shopping cart here: https://stage.dembetheatre.org/cart.php I have some nice grid and flex working inside container queries on the <section class="basket"> I have a nested header element and cart items all in a subgrid I have allocated the first cell a width of 300px BUT The continer query is not recognising the .basket items in the @container: @container (min-width: 768px) { .basket { grid-template-columns: 300px 1fr 1fr 100px; grid-template-rows: auto; } } @container (min-width: 1200px) { .basket { grid-template-columns: 300px 1fr 1fr 100px 60px; grid-template-rows: auto;} } Also in min-width:1200 this is not working either .bkheader span:nth-of-type(3) { grid-column: 4 / span 2; } I cannot figure out why the container is ignoring .basket and why the last header item will not span the 2 columns!!!
No description
No description
3 Replies
infuzed5940
infuzed5940OP•9mo ago
Ok, I resolved it! I was being an idiot and applied a container query to itself Now set up container names and now cascading correctly. It's clear where my spanning issues are, just need to work them out...
infuzed5940
infuzed5940OP•9mo ago
No description
Kevin Powell
Kevin Powell•9mo ago
You were not being an idiot, you did what everyone does. Be nice if we could do it like that, but I get why we need that extra layer 🙂
Want results from more Discord servers?
Add your server