[Resolved] How to Add Shadow to Header and Primary Menu for both desktop and mobile version

Home Forums Support [Resolved] How to Add Shadow to Header and Primary Menu for both desktop and mobile version

Home Forums Support How to Add Shadow to Header and Primary Menu for both desktop and mobile version

  • This topic has 5 replies, 3 voices, and was last updated 5 years ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #758605
    Rajesh

    Hi, Will you please share CSS to add shadow to the header and primary menu like this site http://www.kerrycricket.com/. And I want to know how to add the same shadow for the mobile version.

    #758612
    Leo
    Staff
    Customer Support

    Hi there,

    Give this CSS a shot:

    .site-header, #mobile-header {
        -webkit-box-shadow: 0px 2px 8px 0px rgba(50,50,50,0.08);
        -moz-box-shadow: 0px 2px 8px 0px rgba(50,50,50,0.08);
        box-shadow: 0px 2px 8px 0px rgba(50,50,50,0.08);
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know ๐Ÿ™‚

    #758613
    Rajesh

    Thank you, it has worked.

    #758615
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

    #860418
    Rajesh

    Hai, This code is not showing shadow in the mobile header, earlier it has worked but now it is not working. So please help me.

    #860723
    David
    Staff
    Customer Support

    Hi there,

    Try this:

    .site-header, #mobile-header {
        -webkit-box-shadow: 0px 2px 8px 0px rgba(50,50,50,0.08);
        -moz-box-shadow: 0px 2px 8px 0px rgba(50,50,50,0.08);
        box-shadow: 0px 2px 8px 0px rgba(50,50,50,0.08);
        position: relative;
        z-index: 1;
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.