Can't using :last-child selector

Hello Brickster,

How to apply the CSS code only to the last item (nav menu)?

I tried to use :last-child & :nth-last-child(1), but that didn’t work.

image

Probably the wrong selector, could you share the link?
It’s almost impossible to figure it out without a link.

Of course

This is the link: https://riomastri.com

Could you please explain in more detail what exactly you want to achieve? Since your “last” menu item is not actually the last one, this could be the reason :slight_smile:

It works on my end if I delete the hidden one)

SCR-20240519-tjsa

Oh I see

Thank you

That’s my mistake

Will try

Thank you