Tell us what’s happening:
I can’t pass number 17 question, what is wrong with my 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">
<title>Blog Post Card</title>
<link rel="stylesheet" href="styles.css"
</head>
<body>
<div class="blog-post-card">
<img class="post-img" src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="coding">
<div class="post-content">
<h2 class="post-title">How to learn python</h2>
<p class="post-excerpt">python is the most used computer language in the tech world therefore it is important to learn paytho. Python used in many field suach as AI/Machine learn, web-development, softwasre engiener and computer science </p>
<a class="read-more" href="freecodecamp.org">Read More</a>
</div>
</div>
</body>
</html>
/* file: styles.css */
.blog-post-card {
background-color: #fff;
border-radius: 5%;
width: 300px;
box-shadow: 0 4px 8px rgba(0, 6, 5, 0.5);
text-align: center;
}
.post-img {
border-color: black;
border-bottom: 7px solid black;
width: 100%;
border-radius: 5%;
height: 10rem;
}
.post-excerpt:first-letter {
text-transform: capitalize;
}
.post-content {
display: flex;
flex-direction: column;
padding: 8px;
}
.read-more:hover {
background-color: gray;
}
.read-more {
width: 50%;
margin: 2rem;
text-decoration: none;
color: white;
background-color: black;
border-radius: 30%;
padding: 5px;
text-align: center;
display: inline-block;
}
.post-title , .post-excerpt {
margin: 30px;
color: #0038a1;
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
Challenge Information:
Design a Blog Post Card - Design a Blog Post Card
https://www.freecodecamp.org/learn/full-stack-developer/lab-blog-post-card/lab-blog-post-card