You can use the following CSS code to remove the border on the last post item by going to Appearance > Customize > Additional CSS and pasting it there.
/*Remove last border for post list*/
.post-inner-content:last-child {
display: none;
}
And the result was that the borders were gone under every post, not just the last one. For some reason it seems to recognize every post-inner-content div as the last-child. Any ideas?
This is a rather unusual issue.
The problem here is that the border is applied to the inner element which is essentially the child of an article element.
Now if we use the last child selector, we’re basically looking for every inner element and applying it to the last one in the container, so essentially, the CSS is being applied the last inner element in every article.
If it was that all the inner elements were in one article element, then the CSS would work, however, it’s now pretty difficult to apply this CSS to the final element. I could target the post ID and it would work there, however, that probably won’t be the bottom post forever, so it would quite likely stop working then.
I hope you understand what’s happening here, and I’m sorry about that issue.
thank you for your explanation! That’s what I thought was happening. Can you provide me with the code that targets the post ID? I will then manually change it every time the bottom post changes.