Tell us what’s happening:
i have tried everything and went to the answers to the step 13 also nothing happened what’s wrong with the 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">
<link href="styles.css" rel="stylesheet" >
<title>Blog Post Card</title>
</head>
<body>
<div class="blog-post-card">
<img src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="someone entering data on a laptop" class="post-img">
<div class="post-content">
<h2 class="post-title">Learn Web Development in 2024</h2>
<p class="post-excerpt">Stay ahead of the curve with the latest trends in web development. Discover what's new and exciting in 2024</p>
<a href="https://www.google.com/" target="_blank" class="read-more">Read More</a>
</div>
</div>
</body>
</html>
/* file: styles.css */
body {
background-color: gray;
font-family: "Sofia", sans-serif;
}
.blog-post-card {
background: white;
width: 320px;
text-align: center;
margin-top: 50px;
margin-right: auto;
margin-left: auto;
padding: auto;
border-radius: 10px;
height: 400px;
}
.post-img {
width: 320px;
border-radius: 10px 10px 0px 0;
border-bottom: 2px solid black;
}
.post-content {
text-align: center;
padding: 15px;
}
.post-title {
margin: auto;
padding: 10 10 10 10;
width: 280px;
color: navy;
}
.post-excerpt {
margin: auto;
padding: auto;
width: 280px;
color: darkgreen;
}
.read-more {
text-decoration: none;
color: white;
background: black;
display: inline-block;
margin: 5px;
width: 90px;
height: 20px;
padding: 10px 5px 5px 10px;
max-width: 90;
border-radius: 5px;
}
.read-more:hover{
color: red;
}
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