Tell us what’s happening:
Your .read-more element should have a hover effect.
where am I going wrong with my hover effect, someone help?
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="going through programming languages">welcome to programming 101
<div class="post-content">
<h2 class="post-title">Chronicles of the 20th Century Youth</h2>
<p class="post-excerpt"></p>
<a class="read-more">Read More</a>
</div>
</div>
</body>
</html>
/* file: styles.css */
body{background-color: silver}
.blog-post-card
{background-color: white;
border-radius:5px;
text-align: center;
width:100%;}
.post-img{
width:100%;
border: olive 10px dashed;
}
img{border-bottom: 15px;}
.post-content{padding: 15px;}
.post-title{color:brown ;}
.post-excerpt{color:rgb(73, 73, 138) ;
margin:15px;}
.read-more{
color:white;
background-color:navy;
margin:15px;
padding:15px;
display:inline-block;
border-radius:5px;
}
.read-more:hover {
color:red;}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Challenge Information:
Design a Blog Post Card - Design a Blog Post Card