CSS 101
Cascading Style Sheets
โ 
์ํ๊ณ ์ ํ๋ ๊ธฐ๋ฅ์ property ๋ฅผ ๊ตฌ๊ธ๋ง ํ์
style ํ๊ทธ ์ฐ๊ธฐ
<style> a { color:red; text-decoration: none; } </style>style ์์ฑ ์ฐ๊ธฐ
<li><a href="1.html"><font color='red'> HTML </font></a> </li>
Selector
id < class < tag
css seclector ๋ฅผ ๊ฒ์ํด๋ณด์
tag
๋ชจ๋ ํ๊ทธ์ ๋ํด
.class
<style> .class1 { ~ } .class2 { } </style> <body> <class='class1 class2'> </> -> style ํ๊ทธ์์ ์์๋๋ก ๋จ </body>id
์ด๋ค id ์์ ์ด๋ค ํ๊ทธ
# id tag { }
Property
border
display
padding
์์๊ฐ ์ฐจ์งํ๋ ์นธ
margin
์์๊ฐ ์ฐจ์งํ๋ ์นธ
width
๊ฐ๋ก ์ฐจ์งํ๋ ์นธ
display
๊ฐ๋ ฅํจ. ์ด๋ป๊ฒ ๋ณด์ด๋์ง ํด์ค ์ ์์ inline block ๋ฐ๊ฟ ์ ์๊ณ none ๊ฐ๋ฅ
Box
block level element (div)
์ ์ฒด๋ฅผ ์
Inline element (span)
์์๋งํผ๋ง ์

Grid
css ์ ์ต์ ๊ธฐ์
how to use
๋ฏธ๋์ด ์ฟผ๋ฆฌ
๋๋ฐ์ด์ค๋ง๋ค, ํ๋ฉด์ ํฌ๊ธฐ์ ๋ฐ๋ผ ๋ณด์ฌ์ง๋ ๊ฒ ๋ค๋ฅด๊ฒ
how to use
how to use 2
css ํ์ผ ์ฌ์ฌ์ฉํ๊ธฐ
style.css ํ์ผ์ ๋ง๋ค์ด์ ์ฌํ์ฉํ์
html
style.css
Last updated
Was this helpful?