[Support request] Add shadow below the sticky header

Home Forums Support [Support request] Add shadow below the sticky header

Home Forums Support Add shadow below the sticky header

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

    I’m using this code to add a sticky header:
    .site-header {
    position: sticky;
    z-index: 999;
    top: -10px;
    }

    How can I add a little shadow at the bottom of the header to make it look cool?

    #1648986
    David
    Staff
    Customer Support

    Hi there,

    include a box-shadow property in your CSS like so:

    .site-header {
        position: sticky;
        z-index: 999;
        top: -10px;
        box-shadow: 0 -6px 10px 5px rgba(0,0,0,0.5);
    }

    This app generates box-shadow CSS for you:

    https://cssgenerator.org/box-shadow-css-generator.html

    #1649007
    Shami

    Thanks. Looks good.

    #1649260
    David
    Staff
    Customer Support

    Glad to be of help

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