Hi! So I finished writing my code for the lab project for the Full Stack certification, but when I run it, it says it doesn’t pass the “13. Your .read-more element should have a hover effect.” However, in the preview, the hover effect does work. What´s wrong with my code?
body {
background-color: #cdb4db;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-family: "Raleway", sans-serif;
}
.blog-post-card {
background-color: white;
border-radius: 25px;
width: 400px;
min-width: 100px;
text-align: center;
overflow: hidden;
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
margin: 20px
}
.post-img {
width: 100%;
max-height: 200px;
border-bottom: 2px solid brown;
margin-bottom: 10px;
}
.post-content {
padding: 20px;
}
.post-title {
color: #212529;
margin: 10px;
font-size: 30px;
}
.post-excerpt {
color: #343a40;
padding: 5px;
font-size: 17px;
}
.read-more {
color: #212529;
background-color: #ffafcc;
margin: 10px;
padding: 10px;
display: inline-block;
border-radius: 15px;
border: 1px solid #212529;
text-decoration: none;
}
.read-more:hover {
background-color: #ffc8dd;
color: white;
}