Remove last divider / hr in .geodir_post_meta list

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #502266

    Tony Bellens
    Full Member
    Post count: 254

    Hi,

    when using this code to add dividers in-between the custom fields

    .geodir_post_meta {
    border-bottom:1px solid #75757526!important;
    padding: 10px 0px 10px 0px;
    }

    it adds one at the bottom after the last item. What should I add to remove the last divider from the list?

    Thank you,
    Tony

    #502330

    Alex Rollin
    Moderator
    Post count: 27815

    Here’s a tut about that kind of thing:

    https://css-tricks.com/useful-nth-child-recipies/

    If you need help customizing your styles, try https://wpgeodirectory.com/docs/customizing-your-style/ or
    https://geodirectoryexperts.com for hands on help.

    #502543

    Tony Bellens
    Full Member
    Post count: 254

    Hi Alex, earlier I had to add !important as otherwise the borders/dividers wouldn’t be visible. Now it works without the !important…anyhow

    I browsed a lot, found a lot and tried a lot, but nothing seems to be working. There where 2 that stood out:

    .geodir_post_meta:not(:last-child) {
    /* here goes the code for the borders */
    }

    or

    ..geodir_post_meta:nth-last-child(n+2) {
    /* here goes the code for the borders */
    }

    Does this make any sense to you?

    Thanks,
    Tony

    #502608

    Alex Rollin
    Moderator
    Post count: 27815

    Hi,

    we do not provide site customizations.

    If you need help customizing your styles, try https://wpgeodirectory.com/docs/customizing-your-style/ or
    https://geodirectoryexperts.com for hands on help.

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket