a.width(๋๊ป)
b.color
c.style
d.box sizing (๋ง์ถค)
e.radius (๋ชจ์๋ฆฌ ๊ณก๋ฅ )
#one
{
background-color: antiquewhite;
border-width: 5px;
border-color: black;
border-style: dashed;
box-sizing: border-box;
}
#three
{
border: medium soild green;
border-left-style: dotted;
border-radius: 20%;
}
ํ๋ฒ์ ๋ฃ์ ์ ์๊ณ radius๋ %,px๋ฑ ์ฌ๋ฌ ๋จ์ ์ฌ์ฉ ๊ฐ๋ฅ
shorthand
/* apply to all four sides */
padding: 20px;
/* vertical / horizontal */
padding : 5px 10px;
/* top / horizontal / bottom */
padding : 1px 2px 2px;
/* top / right / bottom / left */
padding : 5px 1px 0 2px;
padding๊ณผ ๋์ผ
1.Inline
2.Block
3.Inline-Block
4.none
css
h1{display : line;}
display property๊ฐ ๋ฌด์์ธ์ง์ ๋ฐ๋ผ width,height,
margin,border,padding ์ ์ฉ๋๋๊ฒ ๋ค๋ฆ
์ด ๋ถ๋ถ์์ 1,2,3๋ฒ์ด ์ฐจ์ด๋ฅผ ๋ณด์
Relative-EM,REM,VH,VW,%,etc.
EM- ๋ถ๋ชจ ์์์ ํฌ๊ธฐ์ ๋ํด ์๋์ ์ธ ํฌ๊ธฐ๋ฅผ ๊ฐ์
ex) 2EM์ ๋ถ๋ชจ ์์์ ํฌ๊ธฐ์ ๋ํด 2๋ฐฐ์ ํฌ๊ธฐ๋ฅผ ๊ฐ์
REM- Html ์์์ ๋ฐ๋ผ ์๋์ ์ธ ํฌ๊ธฐ๋ฅผ ๊ฐ์
Absolute-PX,PT,CM,IN,MM