Design A Blog Post Card

I keep getting this error message saying “Your .post-img element should have a border-bottom value.”

HTML code:

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Blog Post Card</title>

a laptop

<h2 class="post-title">Blog Post</h2>

<p class="post-excerpt">ipsum popsum ffffffff</p>

<a class="read-more" href="#">Read More</a>

</div>

CSS code:

body {

background-color: sky-blue;

}

.blog-post-card {

background-color: white;

border-radius: 9px;

width: 50px;

text-align: center;

}

.post-img {

width: 100%;

border-bottom: 20px black;

}

.post-content {

padding: 10px;

}

.post-title{

color: pink;

}

.post-excerpt{

color:purple;

}

.read-more {

color: red;

background-color: gray;

margin:12px 12px 12px 12px;

padding: 2px;

border-radius: 3px;

display: inline-block;

}

.read-more:hover{

background-color:yellow;

}

This is invalid syntax for border shorthand.

Please refer to this reference for an example of the correct syntax to use:

CSS Borders - Shorthand Property

I found “border-bottom“ on the website you mentioned. I copy-pasted it because I cannot for the life of me figure out what I’m doing wrong. Thanks, though!

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