Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

hello,
please help, it says your post image should have a border bottom value which I already did.

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" type="text/css" href="styles.css"/>

</head>
<body>
    <div class="blog-post-card">
       <div> <img class="post-img" src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="A Laptop">
       </div>
        <div class="post-content">
    <h2 class="post-title">Software development trainee</h2>  
    <p class="post-excerpt">  Navigating frontend software development. Building projects every step of the way to perfect my skills using the free code camp online bootcamp</p> 
    <a class="read-more" href="https://www.readmore.com"><bold>Read More</bold></a>  

            </div>

</div>



</body>
</html>
/* file: styles.css */
.blog-post-card{ background-color: white;
border-radius: 30px; 
border: 10px; 
width: 500px;
font-family: san-serif; 
text-align: center;
margin:auto;


  

}
.post-img{
  
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
   width: 500px;

  border-bottom: 30px; 
  border-color: black;
  border-radius: 2em 2px;
  max-height: 400px;


  

  
}


.post-content{

background-color: white;
border-radius: 50%;
padding: 20px;


 }

 .post-title{ margin: 0px 3px ;
 color: black;
 font-weight: extrabold;  

 }
 .post-excerpt{ margin: 2px 30px 2px 50px;
 color: black;
 

 }
 .read-more{ background-color: black;
   color: white;
   text-align: center;
   margin-top:30px;
   margin-bottom: 10px;
border-radius: 1px 3px;
padding: 10px;
display: inline-block;

 }
 .read-more:hover{
   background-color: black;
 }
 

Your browser information:

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

Challenge Information:

Design a Blog Post Card - Design a Blog Post Card

removed

You need specify at least two values I think.One is the border-width and the other one is border-style.

1 Like

Please don’t post solution code :+1: