Tell us what’s happening:
I cannot solve 3 and 4. At one point I had everything solved except 3 but now I’m back to duplicates of Hello World in each color and I understand why but am deadlocked on how to put them in the same h1 element except for possibly using class= class1 class2 or id.
I’ve researched the code for this problem and have been unsuccessful in finding a solution:
one github source just says it’s a stub and has no information.
Another source says use code involving:
#orange-text in style and then use <h1 id...
We have not been instructed on this code to this point.
another source says use ` !Important` function - no instructions to this point
I’ve tried class=class1 class2 - doesnt work
Help is greatly appreciated.
https://learn.freecodecamp.org/responsive-web-design/basic-css/override-styles-in-subsequent-css
Your code so far
<style>
body {
background-color: black;
font-family: monospace;
color: green;
}
.pink-text {
color: pink;
}
.blue-text {
color: blue;
}
</style>
<h1 class="pink-text">Hello World!</h1>
<h1 class="blue-text">Hello World!</h1>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/override-styles-in-subsequent-css