Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #297854

    Hello,

    I’m trying to get the background of the sub menu to alternate colour with an n-th:child rule but without much luck – I suspect it’s being overwritten somewhere.

    Any ideas?

    Cheers,

    Ed

    #297999

    Hi aspectgroup!

    You can use menu item ID’s in your code as following

    li#menu-item-220:hover a {
    background-color: red!important;
    color: white!important;
    border-color: orange!important;
    }

    Please add the code above to Quick CSS in Enfold theme options under General Styling tab. You can right click on Chrome or Firefox to inspect elements to find ID’s http://i.imgur.com/HyPTCRg.jpg

    Best regards,
    Yigit

    #298156

    Cheers, I will give that a go.

    Can you only do it via indivudual menu items or can you style it via nth-child/nth-of-type?

    #298225

    Hi!

    You can do both but using menu item ID would be more accurate

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.