Tell us what’s happening:
The test number 9 does not pass, it ask the background color to be white which it is and i don’t understand why it won’t pass.
Thank you for your time
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="hands typing on an open laptop">
<div class="post-content">
<h2 class="post-title">Learn to type so fast your eyebrows will disappear</h2>
<p class="post-excerpt">This is my attempt to write a blog article on how to type fast AF boiiiii</p>
<a class="read-more" href="https://www.google.fr/">Read More</a>
</div>
</div>
<p>hello world</p>
</body>
</html>
/* file: styles.css */
.blog-post-card {
background-color: white;
border-radius: 10px;
width: 300px;
text-align: center;
margin-left: 152px;
margin-top: 100px;
}
.post-img {
width: 300px;
border-bottom: solid 6px grey;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.post-content {
padding: 15px;
}
.post-title {
color: white;
margin: 5px;
}
.post-excerpt {
color: #e0e0e0;
margin: 10px;
}
.read-more {
color: #000000;
background-color: #d3d3d3;
margin: 5px;
padding: 5px;
border-radius: 5px;
text-decoration: none;
display: inline-block;
}
.read-more:hover {
background-color: brown;
}
body {
background-color: #000001;
font-family: Arial, sans-serif;
}
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