Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

I did all just need end last test
20. Your .post-img element should fill the card’s width and have a border-bottom value.

I dont get what wrong with my code I have width and border-bottom in my code

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Blog Post Card</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="blog-post-card">
        <img class="post-img" src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="Cover Photo" width="250" height="150">
        <div class="post-content">
            <h2 class="post-title">Learning web development with freeCodeCamp</h2>
            <p class="post-excerpt">I like learning development my dream is working in IT company</p>
            <a class="read-more">Read More</a>
        </div>
    </div>

</body>
</html>
/* file: styles.css */
.blog-post-card {
    border: 2px dashed;
    border-radius: 20%;
    border-color: rosybrown;
    background: white;
    text-align: center;
    margin: auto;
    width: 350px;
    height: auto;
  }
  
.post-img {
      margin-top: 15px;
      margin-bottom: 10px; 
      width: 250px;
      border: 2px dashed;
      border-color: aquamarine;
      border-radius: 20%;
      border-bottom: 10px;
  }
.post-content {
    text-align: center;
    padding: 15px;
    margin-top: 10px;
}
.post-title {
    margin-top: 5px;
    margin-left: 10px;
    margin-bottom: 20px;
    margin-right: 10%;
    color: darkblue;
}  
.post-excerpt {
    margin-top: 5px;
    margin-left: 5%;
    margin-bottom: 10px;
    margin-right: 5%;
    color: brown;
}
.read-more {
    color: black;
    background-color: aqua;
    margin: 10px;
    display: inline-block;
    border: 3px;
    border-radius: 10%;
    padding: 10px;
}
.read-more:hover{
    color: red;
    background-color: blueviolet;
} 

Your browser information:

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

Challenge Information:

Design a Blog Post Card - Design a Blog Post Card

The prompt wants the .post-img element to fill the entire width of the .blog-post-card element, but as it stands, your .post-img is hard-coded to be 250px wide, both in the HTML of your page and in your CSS.

Instead of manually setting the width of your .post-img element to 250px in either your HTML or CSS, think about how to set the width to be 100% of the parent element (.blog-post-card in this case).

Also, border-bottom without a border-style creates a 0px border width, which will make the test fail. Add the style to the border, you can do it directly on the border-bottom property.

Example:

border-bottom: 1rem solid orange;

The requirement is a little misleading, I have mentioned this in an open issue. You are not the first to do this.