Tell us what’s happening:
Hello, I am having an issue with test 17. I have tried other display types, but it still will not pass.
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 class="post-img" alt="computer" src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" />
<div class="post-content">
<h2 class="post-title">Lorem Ipsum</h2>
<p class="post-excerpt">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra scelerisque magna sed facilisis. Phasellus ut ligula dolor. Pellentesque eu.</p>
<a class="read-more">Read More</a>
</div>
</div>
</body>
</html>
/* file: styles.css */
.blog-post-card {
border-radius: 30px;
background-color: white;
margin: auto;
width: 50%;
padding: 0px;
text-align: center;
}
.post-img {
width: 100%;
height: auto;
border-radius: 30px 30px 0px 0px;
border-bottom: 3px solid black;
}
.read-more:hover {
background-color:rgb(187, 227, 255);
}
.post-content {
padding: 7px;
}
.read-more {
background-color: rgb(0, 128, 255);
margin: 5px;
display: block;
border-radius: 30px;
padding: 8px;
}
html {
background-color: #f5f5f5;
}
.post-title {
margin: 5px;
color: darkblue;
}
.post-excerpt {
margin: 10px;
color: rgb(0, 0, 59);
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
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