main,
aside {
container-type: inline-size;
}
.media-illustration {
max-width: 200px;
margin: auto;
}
@container (min-width: 25em) {
.media {
display: flex;
align-items: center;
gap: 1em;
}
.media-illustration {
flex: 1;
}
.media-content {
flex: 3;
}
}
styles of media, media-illustration, media-content will be changed by main or aside element's width (not like media queries).
use media queries for the page layout and container queries for the components withing the page.
Form / Form controls 활용하기 (0) | 2022.10.26 |
---|---|
[반응형 디자인 / 개발] Forms (0) | 2022.06.14 |
[반응형 디자인 / 개발] Pointer / Hover / Virtual Keyboards / Autocomplete / User Interfaces (0) | 2022.06.13 |
[반응형 디자인 / 개발] 타이포그래피 Typography (0) | 2022.06.03 |
댓글 영역