250x250
Rainbow๐ŸŒˆCoder
My dev Note๐Ÿ“’
Rainbow๐ŸŒˆCoder
์ „์ฒด ๋ฐฉ๋ฌธ์ž
์˜ค๋Š˜
์–ด์ œ
  • ๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ (411)
    • ๊ณต์ง€์‚ฌํ•ญ (0)
    • Debugger (10)
      • Visual Studio Debugger (1)
      • Chrome DevTools (3)
      • Visual Studio Code Debugger (4)
      • eclipse (1)
      • intelliJ (1)
    • OOP (2)
      • OOP (2)
    • TypeScript (54)
      • ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ TypeScript (54)
    • Javascript (87)
      • Javascript (45)
      • Node.js (19)
      • React (5)
      • FE ๊ฐœ๋ฐœํ™˜๊ฒฝ์„ค์ • (3)
      • React์™€ Node ๊ฐ™์ด ๋•Œ๋ ค์žก๊ธฐ (6)
      • next.js (2)
      • pixi.js (7)
    • ๋งˆํฌ์—… (23)
      • Html & Css (23)
    • C# (80)
      • C# (12)
      • ์ด๊ฒƒ์ด C#์ด๋‹ค (68)
    • C++ (30)
      • c++ (27)
      • win api (3)
    • Unity (18)
      • Unity(๊ธฐ์ดˆ) (8)
      • Unity(C#์ค‘๊ธ‰) (5)
      • ์œ ๋‹ˆํ‹ฐ ํฌํ†ค(๋„คํŠธ์›Œํฌ) (4)
      • unity c# MyCode (1)
    • Java & Spring (29)
      • Java (11)
      • ์Šคํ”„๋ง (8)
      • Java Algorithm (9)
      • Javs Data Structures (1)
    • ์ž๋ฃŒ๊ตฌ์กฐ์™€ ์•Œ๊ณ ๋ฆฌ์ฆ˜ (15)
      • ์ž๋ฃŒ๊ตฌ์กฐ (5)
      • ์•Œ๊ณ ๋ฆฌ์ฆ˜ (10)
    • ํ˜•์ƒ๊ด€๋ฆฌ (15)
      • Git (11)
      • ์†Œ์ŠคํŠธ๋ฆฌ (3)
    • ๊ทธ๋ž˜ํ”ฝ์Šค (7)
      • WebGl (7)
    • AWS (3)
      • aws (3)
    • ๋ฆฌ๋ˆ…์Šค (5)
      • ๋ฆฌ๋ˆ…์Šค (5)
    • ์ฑ… ๋ฆฌ๋ทฐ (13)
      • ํด๋ฆฐ์ฝ”๋“œ(์ฑ…๋ฆฌ๋ทฐ) (3)
      • ์œ ์ง€๋ณด์ˆ˜๊ฐ€๋Šฅํ•œ์ฝ”๋”ฉ์˜๊ธฐ์ˆ C#ํŽธ(์ฑ…๋ฆฌ๋ทฐ) (1)
      • ๋ฆฌํŒฉํ† ๋ง(์ž๋ฐ”์Šคํฌ๋ฆฝํŠธํŒ) (9)
    • Server (2)
      • ๊ฒŒ์ž„ ์„œ๋ฒ„(๋„คํŠธ์›Œํฌ, ๋ฉ€ํ‹ฐ์“ฐ๋ ˆ๋“œ,OS) (2)
    • ์„ค๊ณ„, ์•„ํ‚คํ…์ณ (4)
    • ํŒŒ์ด์ฌ (5)
    • ๋””์ž์ธํŒจํ„ด (2)
    • mocha (2)
    • Jest (1)
    • Spine (1)
    • ์ธ๊ณต์ง€๋Šฅ (1)
      • ํ˜ผ์ž๊ณต๋ถ€ํ•˜๋Š”๋จธ์‹ ๋Ÿฌ๋‹+๋”ฅ๋Ÿฌ๋‹ (1)

๋ธ”๋กœ๊ทธ ๋ฉ”๋‰ด

  • ํ™ˆ
  • ํƒœ๊ทธ
  • ๋ฐฉ๋ช…๋ก

๊ณต์ง€์‚ฌํ•ญ

์ธ๊ธฐ ๊ธ€

ํƒœ๊ทธ

  • ใ…ฃใ„ท
  • ์œ„์ž„
  • MySQL
  • ์ปดํฌ์ง€์…˜

์ตœ๊ทผ ๋Œ“๊ธ€

์ตœ๊ทผ ๊ธ€

ํ‹ฐ์Šคํ† ๋ฆฌ

hELLO ยท Designed By ์ •์ƒ์šฐ.
Rainbow๐ŸŒˆCoder

My dev Note๐Ÿ“’

๊ตฌ๊ธ€ ํ™ˆํŽ˜์ด์ง€ ํด๋ก  ์ฝ”๋”ฉ[์œ ํŠœ๋ฒ„ ์กฐ์ฝ”๋”ฉ๋‹˜]
๋งˆํฌ์—…/Html & Css

๊ตฌ๊ธ€ ํ™ˆํŽ˜์ด์ง€ ํด๋ก  ์ฝ”๋”ฉ[์œ ํŠœ๋ฒ„ ์กฐ์ฝ”๋”ฉ๋‹˜]

2022. 3. 26. 23:06
728x90

https://youtu.be/_YrXKxY8PTY

CSS :nth-child() Selector (w3schools.com)

 

CSS :nth-child() Selector

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

Example

How to use the :nth-child() selector:

/* Selects the second element of div siblings */
div:nth-child(2) {
  background: red;
}

/* Selects the second li element in a list */
li:nth-child(2) {
  background: lightgreen;
}

/* Selects every third element among any group of siblings */
:nth-child(3) {
  background: yellow;
}

 

์œ ์šฉํ•œ ์ž๋™ ํƒœ๊ทธ ์ต์Šคํ…์…˜  htmltagwrap

์‚ฌ์šฉ๋ฒ• alt+w

 

 ๋ถ€ํŠธ์ŠคํŠธ๋žฉ์€ ์ตœ์ข… css๋ณด๋‹ค ์œ„์— ๋ถ™์—ฌ์ฃผ๋„๋ก ํ•˜์ž. ๊ฐœ๋ฐœ์ž๊ฐ€ ์ž‘์„ฑํ•œ css๊ฐ€ ์ตœ์šฐ์„ ์ˆœ์œ„๊ฐ€ ๋  ์ˆ˜ ์žˆ๊ฒŒ๋”.

    <form action="https://www.google.com/search" method="GET">
      <div
        class="mx-auto mt-5 position-absolute top-90 start-50 translate-middle search-bar input-group mb-3"
      >
        <input
          name="q"
          type="text"
          class="form-control rounded-pill"
          placeholder="Google ๊ฒ€์ƒ‰ ๋˜๋Š” URL ์ž…๋ ฅ"
          aria-label="Recipient's username"
          aria-describedby="button-addon2"
        />
      </div>
    </form>
 

 

<form>ํƒœ๊ทธ์˜ action์€ ์–ด๋””๋กœ ํ–ฅํ• ๊ฑด์ง€๋ผ๋Š” ์ฃผ์†Œ์ด๊ณ 

method๋Š” ๋ฐ์ดํ„ฐ์˜ ์ „์†ก ๋ฐฉ์‹์ด๋‹ค.

Get ๋ฐฉ์‹์€ ์ฃผ์†Œ์ฐฝ์˜ ๋ญ”๊ฐ€๋ฅผ ?๋ฌผ์Œํ‘œ ๋’ค์— name์— ํ•ด๋‹นํ•˜๋Š”๊ฑธ ๊ฐ€์ ธ์™€์„œ ์‚ฌ์šฉ์ž๊ฐ€ ์ž‘์„ฑํ•œ๊ฑธ ๋ณด๋‚ด์ฃผ๋Š” ๋ฐฉ์‹

https://www.google.com/search?q="์‚ฌ์šฉ์ž์ž…๋ ฅ๊ฐ’"

    <form action="https://www.google.com/search" method="GET">
      <div
        class="mx-auto mt-5 position-absolute top-90 start-50 translate-middle search-bar input-group mb-3"
      >
        <input
          name="q"
          type="text"
          class="form-control rounded-pill"
          placeholder="Google ๊ฒ€์ƒ‰ ๋˜๋Š” URL ์ž…๋ ฅ"
          aria-label="Recipient's username"
          aria-describedby="button-addon2"
        />
      </div>
    </form>

 

 

๋ฐ˜๋Œ€๋กœ post ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜๋ฉด

์ฃผ์†Œ์ฐฝ์— ์ „๋‹ฌํ•  ๋•Œ๊ฐ€ ์•„๋‹ˆ๋ผ ๋‚ด๋ถ€์ ์œผ๋กœ ๋ญ”๊ฐ€๋ฅผ ์ „๋‹ฌํ•  ๋•Œ ์‚ฌ์šฉํ•œ๋‹ค.

 

๊ตฌ๊ธ€ ๊ฒ€์ƒ‰์ฐฝ ๊ฐ™์€ ๊ฒฝ์šฐ๋Š” ์ฃผ์†Œ์ฐฝ์— ์ •๋ณด๋ฅผ ๋ณด๋‚ด๊ธฐ ๋•Œ๋ฌธ์— 

Get ๋ฐฉ์‹์œผ๋กœ ์‚ฌ์šฉ์ž์˜ ์ž…๋ ฅ ๋‚ด์šฉ์„ q๋ผ๋Š” ์ด๋ฆ„์— ๋‹ด์•„์„œ ๋ณด๋‚ผ ๊ฒƒ์ด๋‹ค.

 

 

html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link
      href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
      rel="stylesheet"
      integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
      crossorigin="anonymous"
    />
    <link rel="stylesheet" href="style.css" />
    <title>Document</title>
  </head>
  <body>
    <h1>
      <span>G</span><span>o</span><span>o</span><span>g</span><span>l</span
      ><span>e</span>
    </h1>

    <form action="https://www.google.com/search" method="GET">
      <div
        class="mx-auto mt-5 position-absolute top-90 start-50 translate-middle search-bar input-group mb-3"
      >
        <input
          name="q"
          type="text"
          class="form-control rounded-pill"
          placeholder="Google ๊ฒ€์ƒ‰ ๋˜๋Š” URL ์ž…๋ ฅ"
          aria-label="Recipient's username"
          aria-describedby="button-addon2"
        />
      </div>
    </form>
  </body>
</html>

css

h1 {
  margin-top: 257px;
  text-align: center;
  font-size: 90px;
  font-weight: 550;
}
form {
  text-align: center;
}
h1 span:nth-child(1) {
  color: #4582f4;
}

h1 span:nth-child(2) {
  color: #ea4335;
}

h1 span:nth-child(3) {
  color: #fbbc05;
}
h1 span:nth-child(4) {
  color: #4285f4;
}
h1 span:nth-child(5) {
  color: #34a853;
}

h1 span:nth-child(6) {
  color: #ea4335;
}
.search-bar {
  width: 500px;
}
728x90

'๋งˆํฌ์—… > Html & Css' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Html/css ๊ตฌ์„ฑํ•˜๋Š”๋ฐ ์œ ์šฉํ•œ ์‚ฌ์ดํŠธ  (0) 2022.04.23
[1๋ถ„ ์ฝ”๋”ฉ] CSS ๋ ˆ์ด์•„์›ƒ ํ•ต์‹ฌ  (0) 2022.03.26
CSS์˜ ๋ ˆ์ด์•„์›ƒ display  (0) 2022.03.21
CSS ๊ธฐ์ดˆ ๊ธฐ๋ณธ  (0) 2022.03.20
๋ฐ˜์‘ํ˜• ์›น ํ•„์ˆ˜ํ…œ ๋ถ€ํŠธ์ŠคํŠธ๋žฉ  (0) 2022.03.18
    '๋งˆํฌ์—…/Html & Css' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€
    • Html/css ๊ตฌ์„ฑํ•˜๋Š”๋ฐ ์œ ์šฉํ•œ ์‚ฌ์ดํŠธ
    • [1๋ถ„ ์ฝ”๋”ฉ] CSS ๋ ˆ์ด์•„์›ƒ ํ•ต์‹ฌ
    • CSS์˜ ๋ ˆ์ด์•„์›ƒ display
    • CSS ๊ธฐ์ดˆ ๊ธฐ๋ณธ
    Rainbow๐ŸŒˆCoder
    Rainbow๐ŸŒˆCoder
    ๋ชฐ๋ผ๋„ ๊ฒฐ๊ตญ์€ ์•„๋Š” ๊ฐœ๋ฐœ์ž, ๊ทธ๋Ÿฐ ์‚ฌ๋žŒ์ด ๋˜๊ธฐ ์œ„ํ•œ ๋งค์ผ์˜ ํ•œ๊ฑธ์Œ

    ํ‹ฐ์Šคํ† ๋ฆฌํˆด๋ฐ”