Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

im submitting code that includes a display set to inline-block, but im still not getting a pass for 17 (You should target .read-more and set its display property)

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="someone typing on a laptop">

        <div class="post-content">
            <h2 class="post-title">Trusted Info</h2>
            <p class="post-excerpt">
                Lorem ipsum dolor sit, amet consectetur adipisicing elit. 
                Cumque perferendis consectetur vero amet explicabo aliquid dolore aliquam, 
                a ut quod. Aperiam dicta cumque sequi perspiciatis esse animi. 
                Voluptates, porro laborum.
            </p>
            <a href="#" class="read-more">Read More</a>
        </div>
        
    </div>

    <div class="post-content"></div>
</body>
</html>
/* file: styles.css */



.blog-post-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
    border-radius: 50px;
    width: 400px;
    text-align: justify;
    margin-top: 100px;
}

.post-img {
    width: 100%;
    border-bottom: red solid 10px;
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
}

.post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.post-title, .post-excerpt {
    color: darkslategray;
    margin: 20px;
}

.post-title {
    display: flex;
    justify-content: center;
}

.read-more {
    display: inline-block;
    min-width: none;
    margin: 10px;
    padding: 10px;
    background-color: #007BFF;
    color: aqua;
    border-radius: 10px;
    text-decoration: none;
}

.read-more:hover {
    background-color: burlywood;
}

Your browser information:

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

Challenge Information:

Design a Blog Post Card - Design a Blog Post Card
https://www.freecodecamp.org/learn/full-stack-developer/lab-blog-post-card/lab-blog-post-card

Hi @dre.lex85

Try nesting the anchor element in the paragraph element.

Happy coding

when you use flex any children to the flex container can’t have an inline display, it’s not compatible