I would like to successfully select the last li of the nav element that does not have the class ".mobile_hidden"
I have try this but it's remove all the img in all li
#main_menu ul.menu:last-child > li ul:last-child li:not(li.mobile_hidden) td.menu_td_picture {
display: none;
}
In the code below i would like to select the "Fichier" and not "administration" menu.
#main_menu ul.menu:last-child > li ul:last-child li:not(li.mobile_hidden) td.menu_td_picture {
display: none;
}
/* #main_menu ul > li:nth-last-child(:not(.mobile_hidden)) li td.menu_td_picture {
display: none;
} */
/* .menu li:hover .menu-hover {
right: 0;
} */
<div id="main-menu">
<nav>
<ul class="menu">
<li></li>
<li></li>
<li>I would like to select him</li>
<li class="mobile_hidden"></li>
<li class="mobile_hidden"></li>
<li class="mobile_hidden"></li>
<li class="mobile_hidden"></li>
<li class="mobile_hidden"></li>
</ul>
</nav>
</div>