In Stack Exchange All sites list view when Sort by: Oldest, each site having proper bottom border except the last site in the list as per the design.

But when change to Sort by: Newest in the list view, the first site doesn't have the bottom border and the last site having the bottom border.

After inspecting the element the border-bottom: none is set for the .lv-item:last-child. But when the Sort by is changing from oldest to newest, the last item in the list (Stack Overflow) is not consider as last-child. Currently the last-child style sticks to Stack Overflow en español.

Screen shot for reference:

Bottom border missing on sort by newest

1 Answer 1


I've removed the .lv-item:last-child rule altogether.

The DOM order of the elements doesn't change when one changes the sort order, causing the rule to keep applying to the last element in the DOM, wherever it actually is in the display.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .