Can CSS be used to display only the most recent x items in a list?
The code below reveals every item except the first two. How can I make it so that only the last two items are displayed in the list?
ul li {
display: none !important;
}
ul li:nth-last-of-type(-n+2) {
display: inherit !important;
}