Use RGB to Mix Colors22

Use RGB to Mix Colors22
0.0 0

#1

Tell us what’s happening:

I’m trying to run test but is not letting me do it, i already check it 5times. if some can help me with this, please.

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 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8.

Link to the challenge:


#2

Don’t forget the semicolons after CSS properties. Also, it’s best that you’re consistent with your capitalization. Though RGB works, most code you’ll see uses rgb.


#3

It’s working in Chrome and Firefox and Codepen. It must be version problem try updating your browser.Thanks


#4

I was having this problem then put the semicolons in. This seemed to allow the lesson to complete. The directions on the lesson did not say to do that.


#5

The semicolons are there to begin with, and you’re only supposed to replace the default #000000 values (though it’s not hard to remove the semicolon along with it). Still, semicolons are a required part of CSS syntax.