HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📝
프론트엔드 스쿨 교안(1기)
/
📝
질의응답 모음!
/
📝
position
📝

position

Created
Nov 4, 2021 09:07 AM
Tags
해결
category
CSS
day
4
  • absolute의 부모중에 position이 static이 아닌 부모를 기준으로 잡습니다. (absolute,relative,fixed 셋중 하나)
  • position이 static일때에는 left,top,right,bottom 속성을 사용할 수 없습니다.
  • Q : relative에서 top을 양수로 하면 아래로 이동하고 bottom을 양수로 하면 위로 이동하던데 둘이 왜 다른 건가요??
  • A : top을기준으로하면 아래로 가야 양수이고, bottom 을 기준으로하면 위로가야 양수이기 때문입니다.