Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

hi guys ive gotten stuck and step 16on wont seem to take for me. the syntax seems to be ok but im missing something

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">
    <link rel="stylesheet" href="styles.css"
    <title>Blog Post Card</title>
</head>
<body>
    
    <div class="blog-post-card">
    <img class="post-img" src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="card">
        <div class="post-content">
            <h2 class="post-title">Title Card
                <p class="post-excerpt">A Post Card</p>
                <a class="read-more">Read More</a>
            </h2>
        </div>
    </div>

</body>
</html>
/* file: styles.css */
.blog-post-card{
border-radius:10px;
background: white;
width:auto;
text-align: center;
padding:10px;
}

.post-content{
  padding:10px;
}

.read-more:hover{
background-color: red;
margin:10px;
display: inline-block;
border-radius:10px;
padding:10px;
}

.post-img{
  width: 400px;
  border-bottom:10px;
}

.post-title{ margin:10px;
  color: blue
  }

.post-excerpt{
  margin:10px;
  color: blue
  }


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0

Challenge Information:

Design a Blog Post Card - Design a Blog Post Card

It looks like you need to initially set the ‘Read More’ background color to one color (e.g., green), and change it to a different color (e.g., red) on hover.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.