Tell us what’s happening:
I have re-written this a couple times and can’t seem to figure out the issue.
The step I am failing is that the .read-more element should have a hover effect.
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 href="styles.css">
</head>
<body>
<div class="blog-post-card">
<img src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="computer" class="post-img">
<div class="post-content">
<h2 class="post-title">Family Events This Week</h2>
<p class="post-excerpt"> This section will summarize the events planned for the week</p>
<a class="read-more">Read More</a>
</div>
</div>
<div class="post-content">
</div>
</body>
</html>
/* file: styles.css */
.blog-post-card {
background: white;
border-radius: 10px; width: 500px; text-align: center
}
.post-img {width: 100%; border-bottom: 5px solid}
.post-content {padding: 55px}
.post-title {color: pink; margin: 10px}
.post-excerpt {color: blue; margin: 10px}
.read-more {color:green; background-color: black; margin: 10px 20px;border-radius: 10px; display: inline-block; background-color: yellow; padding: 15px;}
.read-more:hover{color: purple}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0
Challenge Information:
Design a Blog Post Card - Design a Blog Post Card