I want to style an ul, but the first li and last li should have different styles than the ones between them.
I know the below code is probably very wrong, but can you see what i'm trying to do?
.menu li:hover:not(.menu li:nth-last-child(1)) { border:red solid 1px; }
The HTML is only basic, just want some CSS's styles I can use for any other menus.
<ul class="menu">
<li>All</li><li>Refresh</li><li>Saved</li>
</ul>
So, how do I style the middle li's when the user hovers over them? I want to do this to avoid putting a border in the middle of each list item.