@media media-type and (media-feature-rule) {
/* CSS rules go here */
}
@media screen and (max-width: 600px) {
.box2 {
background-color: brown;
flex-direction: column;
}
.box5 {
display: none;
}
}
@media screen and (min-width: 601px) and (max-width: 1200px) {
.box2 {
background-color: green;
}
}
레퍼런스. mdn!
https://developer.mozilla.org/ko/docs/Learn/CSS/CSS_layout/Media_queries