Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

I am still failing 10, 11, 12, 13, and 22. I’m not sure why. I have reset the lesson and rewritten the code a few times and still fail. Any help would be amazing! Thank you!

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <link href="styles.css" rel="stylesheet">
<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 src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" class="post-img" alt="hands tying on a laptop"/>
    <div class="post-content">
        <h2 class="post-title">Proper Typing Posture</h2>
    <p class="post-excerpt">Learn the proper way to sit to avoid wrist and back pain</p>
    <a class="read-more" href="https://www.wikihow.com/Type" >Read More</a>
    </div>
    </div>
</body>
</link>
</html>
/* file: styles.css */
.blog-post-card {
  background-color: white;
  border-radius: 20px;
  width: 200px auto;
  text-align: center;
  margin: 40px;
}
.post-img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  border-bottom: 2px solid navy;
}
.post-content {
  padding: 20px;
}
.post-title {
  margin: 20px;
  color: navy;
}
.post-excerpt {
  margin: 20px;
  color: navy;
}
.read-more {
  display: inline-block;
  background-color: navy;
  color: white;
  margin: 4px;
  border-radius: 75px;
  padding: 20px;
}
.read-more:hover {
    background-color: #0056b3;
  }

Your browser information:

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

Challenge Information:

Design a Blog Post Card - Design a Blog Post Card

Hi there and welcome to the forum!

  1. You have duplicated link tag
  1. Incorrect usage of auto property
  1. And extra closing link tag. link is a void tag, so it has no closing tag

Thank you so much! I was able to complete it!

2 Likes