Tell us what’s happening:
I can’t get the test 3 where it is asking me to have a div with a class of post-content, thank you.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<link type="stylesheet" href="styles.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blog Post Card</title>
</head>
<body>
<div class="blog-post-card">
<image 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">The laptop</h2>
<p class="post-excerpt">The laptop was a laptop, there isn't much about it...</p>
<a class="read-more" href="https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-blog-post-card/lab-blog-post-card">Read More</a>
</div>
</body>
</html>
/* file: styles.css */
body {
background-color: red;
}
.blog-post-card {
background-color: white;
border-radius: 10px;
width: 100px;
text-align: center;
}
.post-image {
border-bottom: 100px;
}
.post-title, .post-excerpt {
margin: 100px;
text-color: red;
}
.post-content {
padding: 10px;
}
.read-more:hover {
color: purple
}
.read-more {
margin: 10px;
background-color: black;
display: inline;
border-radius: 10px;
padding: 5px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Challenge Information:
Design a Blog Post Card - Design a Blog Post Card