Hi,
I have problem with this task, I think my solution are right but when i press run the task I have a communicate:
Your h1
element should be orange.
What’s wrong?
I have a similar problem in task Inherit Styles from the Body Element and
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;
}
#orange-text {
color: orange;
}
</style>
<h1 class="pink-text blue-text" id ="orange-text">Hello World!</h1>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
.
Challenge: Override Class Declarations by Styling ID Attributes
Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-css/override-class-declarations-by-styling-id-attributes