Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ์ธ๋ผ์ธ
- ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ฉํ ์คํธ
- css
- input
- javascript
- layout
- html ํ๊ทธ
- vscode
- VSCODE๋จ์ถํค
- ์ ๊ฐ์ฐ์ฐ์
- ::before
- ๋ฌธ์์ด
- HTML
- ์๊ณ ๋ฆฌ์ฆ
- ํ๋ก๊ทธ๋๋จธ์ค
- carousel slider
- Em
- js
- string
- ์ฝ๋ฉํ ์คํธ
- object
- scss
- TAG
- float
- ์๋ฐ์คํฌ๋ฆฝํธ
- SASS
- @mixin
- inline
- ์ธ๋ผ์ธ๋ธ๋ก
- ํฉ๊ณ ์๊ณ ๋ฆฌ์ฆ
Archives
- Today
- Total
Outputor
CSS position ๋ณธ๋ฌธ
float ์์ฑ
- float: none โก float ์์ฑ์ ์ ์ฉ์ํจ (๊ธฐ๋ณธ๊ฐ)
- float: left โก ์์๊ฐ ์ปจํ ์ด๋์ ์ผ์ชฝ์ ๋ฐฐ์น๋จ
- float: right โก ์์๊ฐ ์ปจํ ์ด๋์ ์ค๋ฅธ์ชฝ์ ๋ฐฐ์น๋จ
- margin: auto โก ์์๋ฅผ ์ค์์ ๋ฐฐ์น
clear ์์ฑ
- float ์์ฑ์ด ์ ์ฉ๋๋ฉด ๋ค์ ์์๊ฐ float ์์ฑ์ ์์ ๋ฐ๋๋ฐ ์ด๊ฑธ ํด์ ์ํด
- clear: left โก ์ผ์ชฝ์ผ๋ก ๋ฐฐ์น๋ float ์์ฑ ์์์ ํด์ง
- clear: right โก ์ค๋ฅธ์ชฝ์ผ๋ก ๋ฐฐ์น๋ float ์์ฑ ์์์ ํด์ง
- clear: both โก ์์ชฝ์ ๋ฐฐ์น๋ float ์์ฑ ์์์ ํด์น (์ถ์ฒ)
- float ์์ฑ์ ์ด ํ๊ทธ์ ๋ถ๋ชจ ์์์ ::after๋ก clear:both ํด์ฃผ๋ฉด ๋จ
์ด ๋ถ๋ชจ ํ๊ทธ ์์๋ float ์์ฑ์ด ๋ค์ด๊ฐ ํ๊ทธ๋ง ์ฌ์ฉํ๋ ๊ฑธ ์ถ์ฒํจ
position ์์ฑ
- position: static โก position ์์ฑ ์์ (๊ธฐ๋ณธ๊ฐ)
- position: fixed โก ์์๊ฐ ๋ธ๋ผ์ฐ์ ์ฐฝ์ ๊ณ ์ ๋์ด ๋ฐฐ์น๋จ (๋ธ๋ผ์ฐ์ ์ฐฝ์ด ๊ธฐ์ค), ์ธ๋ผ์ธ ๋ธ๋ก(inline-block)๋ก ๋ณ๊ฒฝ๋จ
- position: absolute โก ์์๊ฐ ์ ๋์ ์ธ ์์น์ ๋ฐฐ์น (๋ถ๋ชจ ์์ ๊ธฐ์ค), ์ธ๋ผ์ธ ๋ธ๋ก(inline-block)๋ก ๋ณ๊ฒฝ๋จ
- position: relative โก ์์๊ฐ ์๋์ ์ธ ์์น์ ๋ฐฐ์น (๋ด ์๋ ์์น๊ฐ ๊ธฐ์ค)
- ์ขํ ์์ฑ(left, right, top, bottom)์ fixed, absolute, relative ์ ์ธ ๋ ๊ฒฝ์ฐ๋ง ์ฌ์ฉ ๊ฐ๋ฅํจ
'๐จ CSS ๐ป' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ธ๋ผ์ธ๋ธ๋ก(inline-block) margin ์ ๊ฑฐ (0) | 2021.12.29 |
---|---|
::before ::after ๊ฐ์ํด๋์ค (0) | 2021.12.29 |
๋ธ๋ก์์ vs ์ธ๋ผ์ธ์์ (0) | 2021.12.29 |
background ์ ์ดํ๊ธฐ (0) | 2021.12.29 |
CSS ํฐํธ ์ฌ์ด์ฆ ๋จ์ (0) | 2021.12.28 |