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
- ์๊ณ ๋ฆฌ์ฆ
- ๊ฐ๋ฐ๋์
- ์๋ฃ๊ตฌ์กฐ์ฑ
- ๋น ์คํ๊ธฐ๋ฒ
- ์๊ณ ๋ฆฌ์ฆ์ฑ ์ถ์ฒ
- ์ ๋ ฌ์๊ณ ๋ฆฌ์ฆ
- ์คํ๋ฅดํค
- ์ฝ๋ฉํ ์คํธ
- ์ฝ๋ฉ
- ํํ์ทจ๋ฏธ
- ๋๊ตฌ๋์๋ฃ๊ตฌ์กฐ์์๊ณ ๋ฆฌ์ฆ
- ์ง์์ํ๊ท ๊ตฌํ๊ธฐ
- ์ฝ๋์ต์ ํ
- ์คํ๋ฅดํ์ฝ๋ฉํด๋ฝ
- HTML
- ์น๊ฐ๋ฐ์ข ํฉ๋ฐ
- ๋ฆฌ์กํธ
- ์๋ฃ๊ตฌ์กฐ
- ์คํ๋ฅดํ์ฝ๋ฉ
- ํ๊ท ์จ๋๊ตฌํ๊ธฐ
- ๊ฐ๋ฐ๋์์ถ์ฒ
- ์๊ณ ๋ฆฌ์ฆ๋์
- CSS
- ํํ์ทจ๋ฏธ์ฝ๋ฉ
- ์๊ณ ๋ฆฌ์ฆ์ฑ
- ํ์ ์คํฌ๋ฆฝํธ
- ์๋ฐ์คํฌ๋ฆฝํธ
- ๊ฐ๋ฐ์ฑ ์ถ์ฒ
- ์๊ณ ๋ฆฌ์ฆ๋ฌธ์
- ์ด๋ฒคํธ๋ง์ง
Archives
- Today
- Total
Run with coding
CSS ์์ฑ ์์ฑ ์์ | CSS Coding Convention ๋ณธ๋ฌธ
๐คซ ์ฝ๋ฉ ์ปจ๋ฒค์ ์ด๋?
์ฝ๊ณ , ๊ด๋ฆฌํ๊ธฐ ์ฌ์ด ์ฝ๋๋ฅผ ์์ฑํ๊ธฐ ์ํ ์ผ์ข ์ ์ฝ๋ฉ ์คํ์ผ ๊ท์ฝ
์ฆ, ๋ด๋ถ์ ์ธ ๊ณต๋์ ์ฝ์์ด๊ธฐ ๋๋ฌธ์ ๋ด๋ถ์ ์ผ๋ก ์ ํ๊ธฐ ๋๋ฆ์ด๋ค.
CSS ์์ฑ ๊ธฐ์ ์์ (w. ๋ชจ์ง๋ผ)
- display (์์์ ๋ ธ์ถ ์ฌ๋ถ/ํํ ๋ฐฉ์)
- list-style
- position (์์น/์ขํ)
- float
- clear
- width / height
- padding / margin
- border / background
- color / font
- text-decoration
- text-align / vertical-align
- white-space
- other text
- content
์ ์ด๋ฐ CSS ๊ธฐ์ ์์๊ฐ ํ์ํ ๊น?
์๋ฅผ ๋ค์ด, button์ด๋ผ๋ ํด๋์ค๋ช ์ css๊ฐ ์ฌ~~~๋ฌ์ค์ด ๋ค์ด๊ฐ๊ฒ ๋๋ฉด
๋ด๊ฐ ์ด๋์ ๋ฌด์จ css ์ฝ๋๋ฅผ ์ผ๋์ง ์ฐพ๊ธฐ๋ ํ๋ค ๊ฒ์ด๋ค.
๋๋ง์ ์ปจ๋ฒค์ ์ด ์์ด๋ ์ข์ง๋ง ๋์ค์ ์ผ๋ก ์ฐ๋ ์ปจ๋ฒค์ ์ ์ง์ผ์ฃผ๋ ๊ฒ ์ข๋ค.
.button {
min-width: 300px;
height: 70px;
background-color: chocolate;
box-shadow: 0 14px 0 brown, 0 20px 14px rgba(0, 0, 0, 0.2);
position: absolute;
top: 50%;
left: 50%;
margin-top: -35px;
margin-left: -150px;
border-radius: 10px;
border: none;
outline: none;
transition: 0.4s;
color: white;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
font-size: 24px;
font-weight: 700;
}
// ์๋ฅผ ์์ฑ๋ณ๋ก ์ ๋ฆฌํด๋ณด๋ฉด!
.button {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 50%;
left: 50%;
min-width: 300px;
height: 70px;
margin-top: -35px;
margin-left: -150px;
border: none;
border-radius: 10px;
outline: none;
background-color: chocolate;
box-shadow: 0 14px 0 brown, 0 20px 14px rgba(0, 0, 0, 0.2);
font-size: 24px;
font-weight: 700;
color: white;
cursor: pointer;
transition: 0.4s;
}
'HTML | CSS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Loading svg rotate animation / Next.js svg ์ฌ์ฉํ๊ธฐ (2) | 2022.10.04 |
---|