๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

position1

[CSS] position์†์„ฑ(static, relative, absolute, fixed, sticky) Position ๋ฌธ์„œ ์ƒ์— ์š”์†Œ๋ฅผ ๋ฐฐ์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ง€์ •ํ•œ๋‹ค. top, bottom, right, left ์†์„ฑ์„ ์ด์šฉํ•ด ์š”์†Œ๋ฅผ ์ตœ์ข…์ ์œผ๋กœ ์œ„์น˜์‹œํ‚ฌ ์žฅ์†Œ๋ฅผ ์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. Value static (default) ์ผ๋ฐ˜์ ์ธ ๋ฌธ์„œ์˜ ํ๋ฆ„(Normal Flow)์— ๋งž๊ฒŒ ์š”์†Œ๋ฅผ ๋ฐฐ์น˜ํ•œ๋‹ค. ** z-index, top, bottom, right, left ๋“ฑ ์†์„ฑ์ด ์•„๋ฌด๋Ÿฐ ์˜ํ–ฅ์„ ์ฃผ์ง€ ์•Š๋Š”๋‹ค. relative ์ผ๋ฐ˜์ ์ธ ๋ฌธ์„œ์˜ ํ๋ฆ„์— ๋”ฐ๋ผ ์š”์†Œ๋ฅผ ๋ฐฐ์น˜ํ•œ ๋’ค top, bottom, right, left ์†์„ฑ์„ ์ด์šฉํ•ด ์˜คํ”„์…‹์„ ์ ์šฉํ•œ๋‹ค. ์˜คํ”„์…‹์€ ๋ฌธ์„œ ํ๋ฆ„์— ์˜ํ–ฅ์„ ์ฃผ์ง€ ์•Š์œผ๋ฏ€๋กœ ์ด๋™ํ•œ ํ›„์—๋„ ๋ฌธ์„œ ํ๋ฆ„ ์ƒ ์š”์†Œ๊ฐ€ ์ฐจ์ง€ํ•˜๋Š” ๊ณต๊ฐ„์€ static์ผ๋•Œ์™€ ๋™์ผํ•˜๋‹ค. z-index์†์„ฑ์œผ๋กœ z์ถ• ๋ฐฐ์น˜๋ฅผ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ๋‹ค. absol.. 2021. 11. 4.
๋ฐ˜์‘ํ˜•