Lesson not completing, requirements met

In the lesson " Applied Visual Design: Adjust the background-color Property of Text" the requirements state the following: " The height property on the h4 element should be removed."

I have removed any mention of “height” from the h4 element and it will still not pass. I have refreshed the page, no change.

Please post your full code and a link to the challenge. It is extremely difficult to do anything with screenshots.

Will do. Thank you.

Code:

<style>
  h4 {
    text-align: center;
    background-color: rgba(45,45,45,0.1);
    padding: 10px;
  }
  p {
    text-align: justify;
  }
  .links {
    text-align: left;
    color: black;
  }
  .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">
  <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>```

[https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/adjust-the-background-color-property-of-text]

When I copy-paste your code into my browser, it works.
image

I’d try:

  • Clear your browser cache
  • Turn of any browser extensions for fCC
  • Restart your browser
  • Update your browser
  • Restart your computer

Hmmm. I will check on things on my end. Thank you. Just wanted to check if it was a bug. Have a wonderful day.

Yes, what Jeremy said.

Also, since this is dealing with colors, make sure you don’t have dark mode on.

And in the future, if you have a question about a challenge, the Get Help -> Ask for Help button works great - it will post your code and a link to the challenge.

2 Likes

Thank you. I will go that route if there are future issues.
I did not even think about the Dark mode. I will turn that off and see if that fixes it.
Thank you to both of you.

That’s why we’re here. You’ll be answering questions yourself in no time.

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.