[Resolved] CSS Drop Shadow for Navigation CSS Not Working

Home Forums Support [Resolved] CSS Drop Shadow for Navigation CSS Not Working

Home Forums Support CSS Drop Shadow for Navigation CSS Not Working

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #387686
    Sean

    Hi,

    I’ve tried adding a drop shadow effect for navigation menu by following this thread https://generatepress.com/forums/topic/shadow-under-nav-bar/page/2/ but it does not work for me I’ve tried changing it to sticky but still no luck.

    Am I adding the CSS in the correct section? screenshot https://prnt.sc/gmurbm

    Thanks,
    Sean

    #387695
    Leo
    Staff
    Customer Support

    Hi Sean,

    Can you provide a link to your site? Thanks!

    #387717
    Sean
    #387754
    Tom
    Lead Developer
    Lead Developer

    That CSS is for the sticky navigation, which you don’t seem to be using.

    Try changing nav#sticky-navigation to #site-navigation.

    #387768
    Sean

    Still no change, my site is set to sticky + static navigation.

    #387772
    Tom
    Lead Developer
    Lead Developer

    Add this as well:

    #site-navigation {
        position: relative;
        z-index: 1;
    }
    #387777
    Sean

    Thanks! It seems to have worked, now how do i change so it is just a subtle dark shadow that runs directly parallel underneath the navigation header?

    At the moment it is a big ugly purple shadow that partly runs underneath and also cuts the right side of from the rest of the header.

    #387780
    Leo
    Staff
    Customer Support
    #387798
    Sean

    Great tool! thanks very much all working now!

    #388037
    Leo
    Staff
    Customer Support

    No problem!

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