16.05.26 clear,outline - govl2233/project_studyej GitHub Wiki
- wrapper
: ์ธ๊ณฝ์ ์ด ์๋๋ผ ๋ด๊ฐ ์ ํํ๊ฒ์ ๋ณด์ฌ์ฃผ๋๊ฑฐ๋ผ๋ฐ์ค๋ด๋ถ์ ํฌํจ๋ ์ญํ
๋ ์ด์์ํ ๋ float๋ก ํ๋ฉด ๊นจ์ง๊ธฐ ๋๋ฌธ์ outline์ผ๋ก ํด์ผํจ.
float ์ ๋ค๋ฅธ ์์ฑ clear
float ์ ๋คํํ ๊ฐ์ฅ ๋์ด(height) ๊ฐ ๊ธด์ชฝ ๊ธฐ์ค์ผ๋ก ๋ฐ์ ๋ถ๊ฒ ๋ค.
-
clear-left : float์ด ๋ ์ผ์ชฝ์ ๋์ด๊ฐ ๊ธด ์ชฝ์ผ๋ก ๋ถ๊ฒ ๋ค.
-
clear-right : float์ด ๋ ์ค๋ฅธ์ชฝ์ ๋์ด๊ฐ ๊ธด ์ชฝ์ผ๋ก ๋ถ๊ฒ ๋ค.
-
clear-both : left,right ์ค์ ๊ฐ์ฅ ๊ธด ๋์ด๋ฅผ ๊ฐ์ง ์ชฝ ๊ธฐ์ค์ผ๋ก ๋ฐ์ ๋ถ๊ฒ ๋ค.(๋ง์ง์ ์ค๊ฑฐ๋ฉด both๋ง๊ณ ๋ถ๋์ชฝ ์์ฑ์๋ค๊ฐ ๋ฃ๊ธฐ.)
-
overflow:hidden; white-space:nowrap; text-overflow:ellipsis overflow๋์ด๊ฐ๋๊ธ์๋ณด์ด๊ฒํด์ค nowwrap์ ๋ฃ์ผ๋ฉด ์ค๋ฐ๊ฟ์ด์๋จ ํ ์คํธ์ค๋ฒํ๋ก์ฐ :๊ธ์จ๊ฐ ๋์ด๊ฐ๋...์ผ๋ก ๋ณ๊ฒฝ
-
cascading
- ์ ์์ : css ์์ค์๋ค ์ง์ ์ ๋ ฅ
- ๋ช ์๋ :.class .id ---> class๋ณด๋ค id๊ฐ ๋ ๋๋ค.
๊ฐ์ ๋ ๋ฒจ ์์ค์์์ css์ ์ธ์ด ๋์ค์ ๋์ฌ์๋ก ์์๊ฐ ๋์์ง
- ์ฐ์ ์ : ex)
p{color:#F0F !important}
: ํ๊ทธ์์ !important๋ฅผ ์ฃผ๋ฉด ์ ๋ถ ๋ฌด์ํ๊ณ ์ ์ผ ์ธ์ง(์์ฃผ์ฌ์ฉํ๋ฉด์ ๋์๋จ)