-
[CSS] 창 축소 시 요소 짤림 해결CSS 2023. 3. 13. 15:24
반응형이 아닌 요소의 너비가 딱 정해진 웹페이지를 만드는 중에
창을 축소하거나 화면을 확대할 때 스크롤이 생기지만 요소의 일부가 짤려 보이지 않는 경우가 생겼다.
이때 min-width, min-height를 이용하여 해결이 가능하다.
만약 보여줄 요소가 width는 1280px, height가 600px이라면 아래와 같이 적용해주면 된다.
나의 경우 body에 적용하니 해결되었다.
min-width: 1280px; min-height: 600px;
반응형'CSS' 카테고리의 다른 글
[CSS] color-scheme, prefers-color-scheme 속성 (0) 2023.07.10 [CSS] SVG path의 currentColor 키워드 (0) 2023.04.13 [CSS] 이미지 Layout Shift 방지 (0) 2022.10.26 [CSS] flex: 1이란 (0) 2022.09.14 [CSS] non-boolean attribute warning (0) 2022.09.04