CSS2 position 속성 static 기본값 relative 자신의 원래 위치를 기준으로 위치 결정 absolute 부모 기준(position : relative) → 부모를 지정하지 않으면 body가 기준 수평적 구조라면 position : relative를 써도 postion 속성은 적용되지 않는다. 부모 요소 중에 position : relative가 없다면 body가 기준이 된다. → 즉, 부모-자식 구조, position : relative 둘다 만족해야 한다. 태그들의 위치가 겹칠 수 있음 fixed 브라우저 전체를 기준 웹 페이지가 스크롤 되어도 고정 위치로 지정된 요소는 항상 같은 곳에 위치하게 된다. → position : absolute에서 스크롤이 생겼을 때 밑까지 background-color가 먹지 않았다.. 2023. 8. 22. 참고 출처 animation, transitions https://acchou.github.io/html-css-cheat-sheet/animation.html 아이콘 http://xpressengine.github.io/XEIcon/started.html 모달 https://getbootstrap.kr/docs/5.0/components/modal/ 2023. 8. 21. 이전 1 다음