MapleStory Finger Point

๐Ÿ”ด WEB 13

CSS Navigation Bar

CSS Navigation Bar ํ‘œ์ค€ ํ‹€ Home News Contact About ์•ˆ๋…•ํ•˜์„ธ์š” ๐Ÿ’ฌ ์ˆซ์ž๋กœ ์ •๋ ฌ๋œ ์ˆœ์„œ ์žˆ๋Š” ๋ชฉ๋ก(Ordered List) ๐Ÿ’ฌ ์ ์œผ๋กœ ์ˆœ์„œ ์—†๋Š” ๋ชฉ๋ก(Unordered List) ๐Ÿ’ฌ ํƒœ๊ทธ๋ชฉ๋กํ•ญ๋ชฉ ์ •์˜ ๐Ÿ’ฌ ํ•˜์ดํผ๋งํฌ(๋งํฌ)๋ฅผ ์ •์˜ํ•˜๋Š” ํƒœ๊ทธ ( href ์†์„ฑ/ target ์†์„ฑ) ul { list-style-type: none; margin: 0; padding: 0;} ๐Ÿ’ฌ list-style-type : ๋ชฉ๋ก ์š”์†Œ(, )์˜ ๊ธฐ๋ณธ ๋ชฉ๋ก ๋งˆ์ปค(marker)๋ฅผ ์ œ๊ฑฐ ๐Ÿ’ฌ margin: 0; padding: 0; ๋ธŒ๋ผ์šฐ์ € ๊ธฐ๋ณธ ๊ฐ’ ์ดˆ๊ธฐํ™”(reset)ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉํ•˜๊ฑฐ๋‚˜/ ์›น ํŽ˜์ด์ง€์˜ ๋ ˆ์ด์•„์›ƒ์„ ์กฐ์ •ํ•  ๋•Œ ์—ฌ๋ฐฑ์„ ์ œ์–ด CSS Vertical Navigation Bar ul { list-..

ViewPort (๋ทฐํฌํŠธ)

ViewPort : ์‚ฌ์šฉ์ž๊ฐ€ ๋ณผ ์ˆ˜ ์žˆ๋Š” ์›นํŽ˜์ด์ง€ ๊ณต๊ฐ„ Viewport ์˜ ํ‘œ์‹œ ์˜์—ญ์€ ์žฅ์น˜๋ณ„๋กœ ๋‹ค๋ฅด๋‹ค. ๋ทฐํฌํŠธ๋ฅผ ์ œ์–ดํ•˜๊ธฐ์œ„ํ•ด์„œ๋Š” ๋ชจ๋“  ์›นํŽ˜์ด์ง€์— ์•„๋ž˜ ์š”์†Œ๋ฅผ ํฌํ•จ์‹œ์ผœ์•ผํ•œ๋‹ค. ์ด ๋ถ€๋ถ„์€ ์žฅ์น˜์˜ ํ™”๋ฉด ๋„ˆ๋น„๋ฅผ ๋”ฐ๋ฅผ ์ˆ˜ ์žˆ๋„๋ก ํŽ˜์ด์ง€ ๋„ˆ๋น„๋ฅผ ์„ค์ •ํ•จ width=device-width ์ด ๋ถ€๋ถ„์€ ํŽ˜์ด์ง€๊ฐ€ ๋ธŒ๋ผ์šฐ์ €์— ์ฒ˜์Œ ๋กœ๋“œ ๋  ๋•Œ ์ดˆ๊ธฐ ํ™•๋Œ€/์ถ•์†Œ ์ˆ˜์ค€์„ ์„ค์ •ํ•จ initial-scale=1.0 ์ถ”๊ฐ€ ๊ทœ์น™ https://www.w3schools.com/css/css_rwd_viewport.asp

Media Queries - @media

๋ฐ˜์‘ํ˜•์›นํŽ˜์ด์ง€ ๋ฅผ ๋งŒ๋“ค๋•Œ ์‚ฌ์šฉํ•œ๋‹ค. ํŠน์ • ๋ถ€๋ถ„์— ๋ฏธ๋””์–ด์ฟผ๋ฆฌ๋กœ BreakPoints ๋ฅผ ์„ค์ •ํ•ด์„œ ๋ฐ˜์‘ํ˜• ์›นํŽ˜์ด์ง€๋ฅผ ๋งŒ๋“ฌ width and height of the viewport - ๋ทฐํฌํŠธ์˜ ๋„ˆ๋น„์™€ ๋†’์ด width and height of the device - ๊ธฐ๊ธฐ์˜ ๋„ˆ๋น„์™€ ๋†’์ด orientation (is the tablet/phone in landscape or portrait mode?) - ๋ฐฉํ–ฅ resolution - ํ•ด๊ฒฐ 1. ์žฅ์น˜ (๋ทฐํฌํŠธ ํฌ๊ธฐ๊ฐ€ ๋‹ค๋ฅธ ๊ฒฝ์šฐ) /* Extra small devices (phones, 600px and down) */ @media only screen and (max-width: 600px) {...} /* Small devices (portrait tablets..