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:
https://www.freecodecamp.org/challenges/use-rgb-to-mix-colors
Note that valid CSS looks something like this:
.className{
property: value;
}
Also, you have a typo:
rahenu92:
.orchid-text:{
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>
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.
Semicolon missing at the end of rgb?
\\ .red-text{
color: rgb(255,0,0)
}
Thank you but it’s not working. only .orchid-text{
color: rgb(218,112,214);
} works
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.
1 Like
Got it, Thank you very much for your help
1 Like