필굿스토리

 

 

https://www.freecodecamp.org/learn/responsive-web-design/basic-css/use-rgb-to-mix-colors

 

 

Use RGB to Mix Colors

Just like with hex code, you can mix colors in RGB by using combinations of different values.

 

 

TEST

Replace the hex codes in our style element with their correct RGB values.

ColorRGB

Blue rgb(0, 0, 255)
Red rgb(255, 0, 0)
Orchid rgb(218, 112, 214)
Sienna rgb(160, 82, 45)

 

 

<style>
  .red-text {
    color: rgb(255, 0, 0);
  }
  .orchid-text {
    color: rgb(218, 112, 214);
  }
  .sienna-text {
    color: rgb(160, 82, 45);
  }
  .blue-text {
    color: rgb(0, 0, 255);
  }
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="orchid-text">I am orchid!</h1>

<h1 class="sienna-text">I am sienna!</h1>

<h1 class="blue-text">I am blue!</h1>

공유하기

facebook twitter kakaoTalk kakaostory naver band