Help a starting coder out Add a box-shadow to a Card-like Element

Ok so I am stuck with Add a box-shadow to a Card-like Element cannot figure out where the element goes at all and there has been no actual clear answers from the forum that I can see please help a guy starting out in coding.


<style>
<div class="fullCard" id="thumbnail"
>
.thumbnail {
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
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;
  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>
    <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>

Thanks to anyone that can help me out here with clear instruction.

Challenge: Add a box-shadow to a Card-like Element

Link to the challenge:

Something got screwed up with your post - I tried to edit it to make it more readable but I don’t know if I screwed things up worse.

Right off the bat, this looks weird:

<style>
<div class="fullCard" id="thumbnail"
>

That div shouldn’t be inside the style tags.

The other problem is that the instructions say:

The element now has an id of thumbnail. With this selector, use the example CSS values above to place a box-shadow on the card.

You have:

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

There are two problems that I see. First, you used .thumbnail to target it, but the instructions explicitly say that it is an id. You target ids with a #, not . (period) - those target classes. The other problem is that I don’t see a closing curly brace.

When I reset the code (to get a fresh start) add in your CSS lines with those two adjustments, the challenge passes for me.

1 Like

Thank you @kevinSmith you saved me the stress this was causing me and all iot was was 2 little changes. I really do appreciate the help.