@ -364,7 +364,7 @@ We have used **media query** for **responsive design** for years: we have writte
**Media query** looks at the width of the entire page. But sometimes it looks small when a card is lined up side by side, it should look big when it is alone. In this case, instead of looking at the page width, it would make more sense to look at the inclusive width of the card.
**Media query** looks at the width of the entire page. But sometimes it looks small when a card is lined up side by side, it should look big when it is alone. In this case, instead of looking at the page width, it would make more sense to look at the inclusive width of the card.
- The browser checks the condition in `@container` for each parent (parent) element.
- The browser checks the condition in `@container` for each parent (parent) element.
- If the parent element is **marked as a container,**** (`Container-Type` is given), its size is examined.
- If the parent element is **marked as a container,**(`container-type` is given), its size is examined.
- So `@container` automatically connects to the nearest **“ container ”** upper element.
- So `@container` automatically connects to the nearest **“ container ”** upper element.
@ -536,12 +536,12 @@ But now thanks to the new feature of CSS, we can do this **directly with CSS**.
Let's make a box move to the right as a box shifts down:
Let's make a box move to the right as a box shifts down: