hey all, I havent been able to get my code to pass this test despite the hover working. I tried to 100% width trick that others were doing but no luck. Any ideas?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Blog Post Card</title>
</head>
<body>
<div class="blog-post-card">
<img src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="Just some nerd's pc" class="post-img">
<div class="post-content">
<h2 class="post-title">
tired of the tiny bite barks?
</h2>
<p class="post-excerpt">i teach you the way to make a chihuahua not hate you
</p>
<a class="read-more">Read More
</a>
</div>
</div>
</body>
</html>
body{
background-color:teal
}
.blog-post-card{
background-color:white;
border-radius:30px;
width: 100%;
height: 100%;
text-align:center;
border-style:none;
}
.post-img{
width: 100%;
height: 100%;
border-bottom:50px;
}
.post-content{
padding:20px;
}
.post-title{
color:blue;
margin: 10px;
}
.post-exerpt{
color:pink;
margin: 10px;
}
.read-more {
color:blue;
background-color:pink;
margin: 10px;
padding: 10px;
border-radius: 30px;
display:inline-block;
}
.read-more:hover{
color:green;
border-style:none;
}