Jump to content

Change the colour of background in dropdown menu.


Recommended Posts

Hi All.

 

I have problem with changing one item bacground colour in dropdown menu.

I can change background in css for all menu items, but I would like to do that for one item.

Can anybody help me?

website address is grek.cyfronik.pl and I am interested in changing background colour for "Stoły naszej produkcji" item.

Link to comment
Share on other sites

  • Qba changed the title to Change the colour of background in dropdown menu.

If I understood correctly, adding the following rule in your css will do what you want:

li#cms-page-6 a.dropdown-item {
    background-color: #def142;
}

or if you want a bigger color rectangle you can color the li element:

li#cms-page-6 {
    background-color: #def142;
}

 

Edited by sakgiok (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...