Change background color menu item

Solved

Change background color menu item

stg_herve
Tourist
9 0 2

Hello, I would like to change the background color to red for the menu item "VENTES PRIVEES" .

Here is the link to the website: https://www.draegerparis.com/

Thank you in advance.

Accepted Solution (1)
nvchien
Shopify Partner
55 23 13

This is an accepted solution.

Ok, @stg_herve.

You can try to update like this:

ul.main-nav>li:first-child {
    background: #b41620;
    padding-left: 14px;
}

View solution in original post

Replies 4 (4)

nvchien
Shopify Partner
55 23 13

Hi @stg_herve ,

 

You can go to Online store -> Themes -> Edit code, find "main.css" file and add the below code to last bottom:

ul.main-nav li:first-child {
    background: #b41620;
    padding-left: 14px;
}

 Hope this helps!

stg_herve
Tourist
9 0 2

Thank you, but this also impacts other tabs. Could you please apply the background color only to the 'VENTES PRIVEES' tab?

stg_herve_0-1718620168793.png

 

nvchien
Shopify Partner
55 23 13

This is an accepted solution.

Ok, @stg_herve.

You can try to update like this:

ul.main-nav>li:first-child {
    background: #b41620;
    padding-left: 14px;
}
stg_herve
Tourist
9 0 2

Its works !
Thank you so much !