Add a box-shadow to a Card-like Element44

Tell us what’s happening:
Hi folks i have tried every other method of help and am not able to figure this out… please help me… thanks in advance!
Christine

Your code so far


<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;
    }
    
  
  #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:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/add-a-box-shadow-to-a-card-like-element

What are you trying to do? What isn’t working correctly? What errors are you seeing? What have you tried so far? What questions do you have?

The alpha part of the rgba() function takes a dot (.) for the decimal point, not a comma.

Tell us what’s happening:
i put the code in just like it says to… i can’t see why it doesn’t work… can someone explain what i am doing wrong and where?
Christine

Your code so far


<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;
    }
    
  
  #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:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/add-a-box-shadow-to-a-card-like-element

I checked your code in the challenge page, and the error points to a missing box-shadow property targeting the thumbnail id. Indeed, that selector was missing in the styling section. Please try adding the following:

#thumbnail {
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  }

As a reminder, # is the symbol used to indicate the selector (thumbnail in this case) is an “id.”
Let us know if it worked! :slight_smile:

Tell us what’s happening:
Hi Everyone,
This one is really giving me problems…4 people have tried to help and it still hasn’t worked i have tried it all in a line like the example and just now like ma-ivana suggested… there is just something wacky with it still. Please help!
Christine

Your code so far


<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;
    }
    
  
  #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:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/add-a-box-shadow-to-a-card-like-element/

Please do not create multiple topics for the same question. I have combined your topics into the original thread so that people can see what help you have already been given and those who have been helping you can continue to do so.

As @lasjorg has said:

The alpha part of the rgba() function takes a dot (.) for the decimal point, not a comma.

Also you have a dot after your rgba, you just need to get rid of it. Your rgba should look like: rgba(0,0,0,0.0) replacing those with your values for the challenge.

thank you all ever so much for your patience, knowledge and time! I finally have it.