Changing the style of one item in the menu.

Silverstripe Version:


I have a page on SilverStripe. I would like to change the color and add a border to one item in the menu.
In the page code, the links have the “link” class in the menu.

I wanted to use nth-child but nothing works. Nothing is displayed.

The CSS files are style.css and style.scss and I did it in style.scss

Can you post some code? eg. the HTML markup you’re working with, the relevant CSS, etc.

After you changed the scss file, did you recompile it to produce the CSS?

It’s working now :slight_smile: I solved this by typing in the bootstrap.min.css nth-of-type tag for A
Thanks for the answer.