I am currently working on designing a mock-up website using CSS codes.
If you want to see the mock-up website, you can visit:
Here is the specific list I am referring to: https://i.sstatic.net/HA3fC.jpg
This is the expected outcome: https://i.sstatic.net/SDAwZ.jpg
In order to achieve the desired result, I used HTML codes to delete the last two li elements:
li class="wp-block-post post-31 post type-post status-publish format-standard has-post-thumbnail hentry category-uncategorized" style="display: none;"
li class="wp-block-post post-33 post type-post status-publish format-standard has-post-thumbnail hentry category-uncategorized" style="display: none;"
However, I encountered an issue. Although I managed to achieve the expected outcome by deleting the last two li elements, I struggled to find an alternate method to remove them within a ul list using only CSS. If anyone has any advice, suggestions, or solutions to help me with this problem, please feel free to share. Your assistance would be greatly appreciated.