Sélecteur CSS à l'exclusion du dernier enfant
li:not(:last-child)
Wissam
li:not(:last-child)
p:last-child {
font-size: 0.75em;
}
/*This will only work if the last child of someEID has
the class .myclassName
if the last child does not have class name us js*/
#someEID .myClassName:last-child {
background: blue;
}
<menu>
<li><a href="/member/profile">Profile</a></li>
<li><a href="/member/options">Options</a></li>
<li><a href="/member/logout">Logout</a></li>
</menu>