DevJun.log
로그인
DevJun.log
로그인
Responsive Design Ingredients
Jun's Coding Journey
·
2022년 11월 5일
팔로우
0
CSS
Coding
design
html
responsive
0
DevBlog
목록 보기
9/9
Fluid Layouts
To allow webpage to adapt to the
current viewport
width (or even height).
Use % (or vh / vw) unit instead of px for elements that
should adapt to viewport (usually layout)
.
Use max-width instead of width.
Responsive Units
Use rem unit instead of px for most lengths.
To make it easy to
scale the entire layout down
(or up) automatically.
Helpful trick:
setting 1 rem to 10px for easy calculations.
Flexible Images
By default, images
don't scale automatically
as we change the viewport.
Always use % for image dimensions, together with the
max-width
property.
Media Queries
Bring responsive sites to life!
To change CSS style on
certain viewport widths
(called breakpoints).
Jun's Coding Journey
Greatness From Small Beginnings
팔로우
이전 포스트
NodeJS & NPM
0개의 댓글
댓글 작성