Please help me out...stucked here

**Tell us what’s happening:**the code written is not wrong i thing…it was meant for creating background color for the h4 with background-color: rgba(45, 45, 45, 0.1) ,
but it is showing i havent even added background-color: rgba(45, 45, 45, 0.1) in the code…what the hell is going on…help me

Your code so far


<style>
h4 {
  text-align: center;
  padding: 10px;

}
h4{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>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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Adjust the background-color Property of Text

Link to the challenge:

You are missing some space and something that closes down.
Hint: all the other in the CSS have one

1 Like

This has been asked before. See here: http://forum.freecodecamp.org/t/adjust-the-background-color-property-of-text/206905

1 Like

what can we do now for solving this…i am not able to do further without completing this

i didnt get what you said, can you help me spot the error. can atleast point to the section

  1. background-color :rgba and background-color:rgba are not same.
    FCC tests does not pass because of the space between background-color and the colon

Even though your code is correct, it does not pass the test .

  1. There is one more error and which is regarding the ending of the statement.

So you are looking at 2 tiny issues here.

1 Like

bro but i dont have a space between color and colen here…then hows it possible.

Remember the CSS rule?

The property value pair always end with a ____?

3 Likes

if you have omitted the space then you have one more error to correct. The ending of the statement.

2 Likes

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

here’s the code i have rewritten it dont have error now.

can u show me how to write it

You’re missing something on the last property value pair which you have done correctly on the first two. You did it correctly in text-align and padding.

1 Like

oh man…thank you so much…i got the output…please dont misunderstand me…iam just a beginner…thank you very much

3 Likes

:partying_face:
You did it.
Struggling is part of the learning process, cherish it.

A CSS declaration always ends with a semicolon**( ; )**

2 Likes

Yup… semicolon was the first thing I thought of. You don’t get an error but it just doesn’t work. Been there done that.