Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

Hi,
can’t figure out why step 17 is not going through. I need some advice. Thank you!

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 href="styles.css" rel="stylesheet" />
</head>
<body>
    <div class="blog-post-card">
        <img class="post-img" src="https://cdn.pixabay.com/photo/2024/05/26/10/15/bird-8788491_1280.jpg" alt="Bird on blooming flower">
        <div class="post-content">
            <h2 class="post-title">This is Title of the blog</h2>
            <p class="post-excerpt">This is blog.</p>
            <a class="read-more" href="www.google.co.th" target="_blank">Read More</a>
        </div>

    </div>
    
</body>
</html>
/* file: styles.css */

.blog-post-card {
  background-color: white;
  border: 3px, solid, orange;
  border-radius: 2%;
  width: 100%;
  min-width: 100px;
  text-align: center;
}
.post-img {
  width: 100%;
  border-bottom: solid;
  border-radius: 2%;
  display: center;
  outline: 3px solid orange;

}
.post-content {
padding: 10px;
}
.read-more {
  color:black;            
  background-color: blue; 
  margin: 10px;            
  padding: 10px 20px;      
  border-radius: 5px;      
  display: inline-block;     
  text-align: center;   
  background-color: rgb(74, 101, 110);
  display: flex;
  padding: 1px;
  margin: 1px;
  border-radius: 5%;

}
.post-title {
  margin: 5px;
  color: black;
}
.post-excerpt {
  margin: 10px;
  color: black;
}
.read-more:hover {
  background-color: lightblue;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 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

You have a lot of duplicate properties here

Once you clean that up and remove the duplicates then it will pass

1 Like

Thank you very much, appreciate.

1 Like