Test failed even though code is correct

Tell us what’s happening:

Test failed.

Your code so far

.links {
    text-align: left;
    color: black;
    opacity: 0.7;
  }

<style>
h4 {
  text-align: center;
  background-color: rgba(45, 45, 45, 0.1);
  padding: 10px;
  font-size: 27px;
}
p {
  text-align: justify;
}
.links {
  text-align: left;
  color: black;
  opacity: 0.7;
}
#thumbnail {
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
.fullCard {
  width: 245px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px 5px;
  padding: 4px;
}
.cardContent {
  padding: 10px;
}
.cardText {
  margin-bottom: 30px;
}
</style>
<div class="fullCard" id="thumbnail">
<div class="cardContent">
  <div class="cardText">
    <h4>Alphabet</h4>
    <hr>
    <p><em>Google was founded by Larry Page and Sergey Brin while they were <u>Ph.D. students</u> at <strong>Stanford University</strong>.</em></p>
  </div>
  <div class="cardLinks">
    <a href="https://en.wikipedia.org/wiki/Larry_Page" target="_blank" class="links">Larry Page</a><br><br>
    <a href="https://en.wikipedia.org/wiki/Sergey_Brin" target="_blank" class="links">Sergey Brin</a>
  </div>
</div>
</div>

Your browser information:

Challenge: Decrease the Opacity of an Element

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element

You have an extraneous “links” definition before the first “style” tag. If you remove that, it should work.

Have had the same problem on the same test for 2 days straight now. Try using a different browser as that’s seemed to work for most people except me lol. Good luck.

thank you @arjunnij, I do not have any extra “links” definition below my starting “” tag. I checked the code again, I could not find the error.
But thanks again for your answer.
Sincerely
Hermann

Hey @cl-engler,
thank you for your reply, I will give a try.
Regards
Hermann

Hello @hazong and @arjunnij, welcome to the FCC community! :slight_smile:

@hazong, I think what @arjunnij has meant is there are two .links definitions. One is right at the top before the <style> element, and the other within the element. I have copied and past your code and commented to highlight this:


// remove this definition as it is outside the style element, and you already have the same definition below.
.links {
    text-align: left;
    color: black;
    opacity: 0.7;
  }

<style>
h4 {
  text-align: center;
  background-color: rgba(45, 45, 45, 0.1);
  padding: 10px;
  font-size: 27px;
}
p {
  text-align: justify;
}

// This is the same definition as above
.links {
  text-align: left;
  color: black;
  opacity: 0.7;
}
#thumbnail {
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
.fullCard {
  width: 245px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px 5px;
  padding: 4px;
}
.cardContent {
  padding: 10px;
}
.cardText {
  margin-bottom: 30px;
}
</style>

I hope this will help you. If it still does not work, let us know.
Good luck!

1 Like

Hey Madalena,
thank you for your answer. The code snippet above the “” tag was so to say an error when I was about to explain my problem, because I didn’t know how to use the editor.
But my code does not have that code.
Sincerely.