Tell us what’s happening:
Looking to understand the .read-more…but confused as donesn’t work as classic css { } if you get what i’m saying. Only got that one left to finish, rest is done!
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="person using laptop" width="300px">
<div class="post-content">
<h2 class="post-title">Learn AI, Machine Learning:</h2>
<p class="post-excerpt">Webinar and Zoom Focus group teaching people how to use AI in a responsibile and proffesional way!
Stay ahead of the curve with the latest trends in web development. Discover what's new and exciting in 2024
</p>
<a class="read-more">Read More</a>
</div>
</div>
</body>
</html>
/* file: styles.css */
body {
background-color: teal;
}
.blog-post-card {
background-color: white;
border-radius: 5px;
width: 450px;
text-align: center;
}
.post-img {
list-style-image: 450px;
border-bottom: 50px;
width: 450px;
}
.post-content {
padding: 20px;
}
.post-excerpt {
margin: 20px;
color: black;
}
.post-title {
color: green;
margin: 20px;
}
.read-more {
color: white;
background-color: blue;
margin: 20px;
padding: 10px;
border-radius: 5px;
display: inline-block;
a:hover:
}
a:hover {
background-color: black;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 Edg/148.0.0.0
Challenge Information:
Design a Blog Post Card - Design a Blog Post Card
