Use RGB to Mix Colors Issue

Use RGB to Mix Colors Issue
0

#1

Hello and thank you in advance!

I’m not sure what I’m doing wrong here… Says to use rgb values. Am I not doing it correctly?

The colors are correct as far as I can tell.

Thank you again.

Your code so far

<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>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36.

Link to the challenge:


#2

Your code is close, you just need to add semicolons:

color: rgb(255, 0, 0);

#3

wowowowow I feel silly posting :rofl:

thank you kindly


#4

RGB’s basically represent different levels of Red, Green, and Blues. If you wanted to make your rgb combination opaque just add an a to the end: rgba(0, 0, 255, 0.5); would give you the color Blue with half transparency. Check out a game I made following a Udemy tutorial, it helps you familiarize yourself with different rgb values/colors: http://landingpagedna.com/menu/projects/index.html


#5

Tell us what’s happening:

Your code so far


<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,225);
  }
</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>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

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