It's asking me to put a background color to the h4 element. I tried it two different ways and it still won't let me pass. The outcome does come out correctly though

Tell us what’s happening:

Your code so far


<style>
h4 {
  text-align: center;
  padding: 10px;
  background-color: rgba(45, 45, 45, 0.1)
  


}
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 style="background-color: rgba(45, 45, 45, 0.1)" >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:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36.

Challenge: Adjust the background-color Property of Text

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

Take a look at this line you entered;
background-color: rgba(45, 45, 45, 0.1)
It’s missing something at the end.

Also, although it will not flag it as an error you also added in-line styling to the h4 element;
<h4 style="background-color: rgba(45, 45, 45, 0.1)" >Alphabet</h4>
avoid doing that unless the instructions tell you to use in-line styling.

Ah…thanks for the tip :slight_smile: I was just confused because the gray box showed up without it and i didn’t even think to add it.

And ya, i just added inline because the other way wasn’t working and i thought I would trying to do it that way just in case. Must remember semi colon!