Tell us what’s happening:
Hi, I have set display for read-more to inline-block, for some reason still can’t pass the test. anyone knows why?
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 src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="typing on laptop" class="post-img">
<div class="post-content">
<h2 class="post-title">
Title
</h2>
<p class="post-excerpt">
This is a paragraph for description. Stay ahead of the curve with the latest trends in web development. Discover what's new and exciting in 2024
</p>
<a class="read-more">
Read More
</a>
</div>
</div>
</body>
</html>
/* file: styles.css */
body {
background: grey;
}
.blog-post-card {
background-color: white;
border-radius: 20px;
max-height: 600px;
max-width: 400px;
height: 500px;
text-align: center;
width: 300px;
}
.post-img {
width:100%;
border-top-left-radius: 20px; /* round top-left */
border-top-right-radius: 20px; /* round top-right */
border-bottom: 2px solid Grey;
}
.post-content {
padding: 5px;
}
.post-title, .post-excerpt {
color: grey;
margin: 30px;
font-family: Arial;
}
.read-more {
display: "inline-block";
font-family: Arial;
color: white;
background: black;
padding: 10px;
margin: 10px;
border-radius: 5px;
}
.read-more:hover {
background: grey;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.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