Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

I’ve added all the required declarations to the .blog-post-card selector, but still get and error, specifically that the validator isn’t acknowledging the border-radius

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>
</head>
<body>
    <div class="blog-post-card">
        <img class="post-img" src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="a post img">
            <div class="post-content">
                <h2 class="post-title">Post title!</h2>
                <p class="post-excerpt">Post content</p>
                <a class="read-more">Read More</a>
            </div>

    </div>

</body>
</html>
/* file: styles.css */
.blog-post-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 350px;
    margin: 20px;
    text-align: center; }

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Design a Blog Post Card - Design a Blog Post Card

Welcome to the forum @LVD

How did you link the css to the html?

Happy coding

YO - OH damn, I totally forgot about <link> [facepalm] - thank you thank you @Teller

1 Like