Last active
July 21, 2021 20:56
-
-
Save owain/3a4e585a0f3458cc96ca400898a33cbd to your computer and use it in GitHub Desktop.
Making App Blocks Responsive Using CSS Blog Post - Container Query Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.parent { | |
contain: layout inline-size; | |
} | |
@container (min-width: 400px) { | |
.child { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment