Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8713665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:23:49+00:00 2026-06-13T05:23:49+00:00

I am finishing some WordPress web page and I want to style (with CSS

  • 0

I am finishing some WordPress web page and I want to style (with CSS) the roll of entries in the Posts page. WordPress creates this:

<div class="entry">

There are loads of these elements in the page, to separate them I used border at the bottom of the entry. The problem is that I don’t want this border on the last entry. Can be anything like that done in CSS? (Note that it’s not a list so I can’t use pseudo-classes)

Here’s my CSS, it’s pretty simple:

.entry{  border-bottom: 1px solid yellow; }

HTML:

<div id="wrapper">
  <br />
  there are loads of code
  <br />
  <div class="entry">bunch of code there</div>
  <br />
  <div class="entry">bunch of code there</div>
  <br />
  <div class="entry">bunch of code there</div>
  <br />
  another huge code
  <br />
</div>

Thanks in advance for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:23:50+00:00Added an answer on June 13, 2026 at 5:23 am

    You’ve already named what you’re looking for: last-child: http://reference.sitepoint.com/css/pseudoclass-lastchild

    So use .entry:not(:last-child) { border-bottom: 1px solid yellow; }

    Note that it´s not a list so I can´t use pseudo-classes)

    JSYK, the pseudoclass does not depend on the containing element being a list. If you meant that the final .entry element is not actually the last child of its container, it may still be possible to select it. But I can’t tell you how unless you show me what the actual markup looks like.

    If your final div.entry is not followed by any other divs, then the selector .entry:not(:last-of-type) will work for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Need some help finishing up this program, everything works and runs like I want
I am currently finishing a web page in php. Basically there is some data
I want to raise the some event in Java after finishing the reading of
In some class I want to load 2 collection asynchronously with Task and stop
I am just putting some finishing touches onto a Licensing solution for a Web
I finishing up a web application and I'm trying to implement some logging. I've
I'm finishing up some of my first C# classes and even though the original
I'm finishing up my website. Noticed I have some scripting issues in IE7 and
In Internet Explorer I was testing some things with Privacy security settings. After finishing
I need help finishing this statement. It is frustrating that two of the PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.