๐ŸณCoding apple HTML/CSS All-in-one : ๊ธฐ์ดˆ๋ถ€ํ„ฐ Bootstrap, SASS, ๊ณ ๊ธ‰ animation ๊นŒ์ง€ ๊ฐ•์˜๋ฅผ ๋ณด๊ณ  ์ •๋ฆฌํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค ๐Ÿณ

๐Ÿ’ซ CSS ํŒŒ์ผ HTML ์ฒจ๋ถ€ํ•˜๊ธฐ

  1. HTML ํŒŒ์ผ์—์„œ CSS ํŒŒ์ผ ๊ฒฝ๋กœ ์ง€์ •
<link href="cssํŒŒ์ผ๊ฒฝ๋กœ~~" rel="stylesheet">
  1. CSSํŒŒ์ผ์— ์Šคํƒ€์ผ ์ง€์ •
/* class selector */
.profile {
    width: 100px;
    display:block;
    margin-left: auto;
    margin-right:auto;
}

.title {
    font-size: 16px; 
    color:#888; 
    letter-spacing: 1px;
}

/* tag selector */
h3 {
    text-align: center;
}

p {
    text-align: center;
}

span {
    color:blue;
}

/* id selector */
#special{
    text-align: center;
}
  1. HTML์— CSS selector ์ฒจ๋ถ€
<h3 class="title">Dozzing World</h3> <!-- Class -->
<p><span>Front-end</span> Developer</p> <!-- Tag -->
<h3 id="special">์ฟ ํ‚ค์ฟ ๋ง ๋ธ”๋กœ๊ทธ ์ž…๋‹ˆ๋‹ค.</h3> <!-- ID -->

ย 

๐Ÿ’ซ ์…€๋ ‰ํ„ฐ์˜ ์šฐ์„ ์ˆœ์œ„

  1. style = โ€œโ€
  2. #id
  3. .class
  4. tag

By Dozzing

๋‹ต๊ธ€ ๋‚จ๊ธฐ๊ธฐ

์ด๋ฉ”์ผ ์ฃผ์†Œ๋Š” ๊ณต๊ฐœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•„์ˆ˜ ํ•„๋“œ๋Š” *๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค