This topic has 1 reply, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #131066
     carlostinca
    Participant

    Hi,

    I have two question:

    1) Im trying to get a element background like this page https://directiveconsulting.com/, but i cant make it work because it paints all the li box. If i reduce the size, the painted box stays in the top (and i cant align it). How can i get this done?

    2) Also, is there a way to change the menu that is showed once the user scroll? Using the example of Directive Consulting, i want to show only several elements in the sticky menu.

    Thanks!

    #131068
     Radu
    Moderator

    Hi,

    1. Use this css and adapt it for your needs

    COPY CODE
    
    ul#menu-main-menu li.color-contacto {
        background: orange !important;
    }
    
    ul#menu-main-menu li.color-contacto a {
        color: #fff;
        line-height: 28px !important;
    }
    
    

    2. You should add a custom css class for each menu item and when it’s scrolled we will hide items with display:none this is the singles solution.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?