Can some one tell me why it's not working?

Can some one tell me why it's not working?
0.0 0

#1

Tell us what’s happening:

Your code so far

<style>
  .red-text{
    rgb(255, 0, 0)
  }
  .orchid-text:{
    rgb(218, 112, 214)
  }
  .sienna-text {
    rgb(160, 82, 45)
  }
  .blue-text{ 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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36.

Link to the challenge:


#2

Note that valid CSS looks something like this:

.className{
  property: value;
}

Also, you have a typo:


#3

Good Catch thank you. i fixed the typo but still not working.

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

#4

I’ve edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#5

Semicolon missing at the end of rgb?

\\ .red-text{
color: rgb(255,0,0)

}


#6

Thank you but it’s not working. only .orchid-text{
color: rgb(218,112,214);
} works


#7

EDIT: As @knowltonGitHub pointed out:

Officially you don’t need them at the last line in a block, but you have to add semi-colons after the CSS statements for the tests to pass.


#8

Got it, Thank you very much for your help