Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS last-child of a class

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38235
    jknetdesign
    Participant

    http://demo.elcaminorealfutbol.org/our-board/

    How would I apply the last-child rule to the last container to not show the bottom border?
    I tried:
    .member-holder:last-child {
    border-bottom: none;
    }

    #103532
    jknetdesign
    Participant

    I ditched the clear class and used overflow:hidden instead, which answered my question.

    #103571
    cssdeck
    Member

    border-bottom: 0; (or even none) should work fine.

    sometimes :last-child might not be selecting the “last child” as you expect it to, so you might want to check out :last-of-type

    Cheers

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.