Getting "Your code should add a padding property to the h4 element and set it to 10 pixels." error, perhaps a bug?

<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>
      <em><p>Google was founded by Larry Page and Sergey Brin while they were <u>Ph.D. students</u> at <strong>Stanford University</strong>.</p></em>
    </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>

In the assignment “Applied Visual Design: Adjust the background-color Property of Text” I have completed all instructions, however it still says I have not added the padding property. Is this a common issue, a rare one, or is there an error on my part?

You’re missing a semicolon: CSS properties need to be separated by one, and the property before the padding in the h4 does not have one.

2 Likes
h4 { text-align: center; background-color: rgba(45, 45, 45, 0.1); padding: 10px;