๐ค study/HTML | CSS
![[CSS] flex | align-items | justify-content | flex-direction | flex-wrap | layout ๋ฐฐ์น๋ฐฉ๋ฒ](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbUtCZ5%2FbtrFz2RhDsJ%2FRWBaoKqKKEOjTpsvKhAth0%2Fimg.png)
[CSS] flex | align-items | justify-content | flex-direction | flex-wrap | layout ๋ฐฐ์น๋ฐฉ๋ฒ
โจ flex ๊ฐ๋ โ๏ธ flexible box๋ผ๊ณ ๋ ๋ถ๋ฅธ๋ค. โ๏ธ layout ๋ฐฐ์น์ ๊ธฐ๋ฅ์ ์ํํ๋ค ์์ฑ 1๏ธโฃ display: flex flex container๋ฅผ ์ ์ํ ๋ ์ฌ์ฉ (1)๊ฐ๋ก๋ฐฉํฅ์ผ๋ก flex item๋ฐฐ์น, (2)๋ด์ฉ๋ฌผ์ width๋งํผ ์ฐจ์ง, (2)container์ ๋์ด๋งํผ height ์ฆ๊ฐ 2๏ธโฃ align-items (1) align-items: flex-start; : ์์ดํ ์ ์์์ ๊ธฐ์ค์ผ๋ก ์ ๋ ฌ ๊ธฐ๋ณธ๊ฐ (2) align-items: flex-end; : ์์ดํ ์ ๋์ผ๋ก ์ ๋ ฌํจ (3) align-items: center; : ์์ดํ ์ ๊ฐ์ด๋ฐ๋ก ์ ๋ ฌํจ 3๏ธโฃ justify-content ๋ฉ์ธ๋ฐฉํฅ ์์ดํ ์ ๋ ฌ(๊ฐ๋ก๋ฐฐ์น์ผ ๊ฒฝ์ฐ์ ์ผ์ชฝ, ์ธ๋ก ๋ฐฐ์น์ผ ๋์๋ ์์ชฝ ์ ๋ ฌ) (1) just..
![[CSS] CSS ๊ฐ์ ์ ํ์ nth-child, nth-of-type](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fde2yyG%2FbtrFjYhuW5N%2FZ0S8j1SoHK56A77IhQIiXK%2Fimg.png)
[CSS] CSS ๊ฐ์ ์ ํ์ nth-child, nth-of-type
(1) :nth-child(N) : ๋ถ๋ชจ ์ ๋ชจ๋ ์์ ์ค N๋ฒ์งธ (2) M:nth-of-type(N) : ๋ถ๋ชจ ์ M ์์์ค N๋ฒ์งธ ์์ ) ์ ํธ๋ฑ..?๋ง๋ค๊ธฐ : div ์ธ๊ฐ๋ก ๊ฐ box๋ค์ด ๊ตฌ์ฑ๋์ด ์๋ค๊ณ ๊ฐ์ (๊ณ ์ ์ด๋ฆ x) /*1-2.css*/ div { width:100px; height:100px; margin-left:0; background-color:red; } div:nth-child(2) { background-color:gold; margin-left:auto; margin-right:auto; } div:nth-child(3) { background-color:green; margin-left:auto; } section { border:5px dotted gray; } ํน์ ๋ฐฉํฅ..
![[CSS] ๋กค์ค๋ฒ(hover)๋? | hover ์ฌ์ฉ๋ฒ | hover ์์ ](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FVXLR8%2FbtrFiRpPxcI%2FoaEle0L6KBELDkl6zKdBJ0%2Fimg.gif)
[CSS] ๋กค์ค๋ฒ(hover)๋? | hover ์ฌ์ฉ๋ฒ | hover ์์
๐ฅ CSS [์ค์ต 1] ๋กค์ค๋ฒ(hover) ์ฌ์ฉํ๊ธฐ hover๋? : ์ด๋ฏธ์ง, ํ ์คํธ, ๋ฒํผ ๋ฑ์ ๋ง์ฐ์ค ํฌ์ธํฐ๊ฐ ์ฌ๋ผ๊ฐ์ ๋ ์ ํ๋๋ css ์์ ์ฌ์ฉ๋ฒ : ์ด๋ฒคํธ๋ฅผ ์ ์ฉํ๊ณ ์ถ์ ์์น์ :hover ์ ์ธ ์์) div:hover { background-color : pink; } ๋ฐ ๋ค ์๋ ? ์ /* hober.css */ section, div { width: 150px; height: 150px; margin: 20px; background-color: yellow; font-size: 2rem; color: white; text-align: center; } div { background-color: pink; display: none; } section:hover ~ div:not(:nth-..