Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Dropshadow for menu bar

Dropshadow for menu bar

Scheduled Pinned Locked Moved General Discussion
8 Posts 2 Posters 974 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    Nico Schröder
    wrote on last edited by
    #1

    Hey there!

    Is it possible to put a dropshadow under a blurry/transparent menu bar?

    Similar to this page: https://benelliot.io/

    Thanks!
    Nico

    1 Reply Last reply
    0
    • RichardR
      RichardR
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear Nico

      @Nico-Schröder

      I'm sure its possible 🌝The CSS applied to the the header (navigation) on your example website has some blur and box-shadow .

      Screen Shot 2022-01-11 at 9.26.39 AM.png

      The different versions of box-shadow you see are just support for different browsers.

      header {
       
          -webkit-backdrop-filter: blur(.3rem);
          backdrop-filter: blur(0.3rem);
      
          -webkit-box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
          -moz-box-shadow: 0 1px 5px rgba(0,0,0,.1);
          -ms-box-shadow: 0 1px 5px rgba(0,0,0,.1);
          -o-box-shadow: 0 1px 5px rgba(0,0,0,.1);
          box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
      }
      

      Best wishes Nico & have a great day ⭐️
      Richard
      1 Reply Last reply
      0
      • N
        N
        Nico Schröder
        wrote on last edited by
        #3

        Dear Richard,

        thanks alot! I copied the CSS from the browser but it only shows a white shadow right on the top of the site for me. How can I make it dark like on the example website?

        Many thanks and best regards,
        Nico

        1 Reply Last reply
        0
        • RichardR
          RichardR
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear Nico

          @Nico-Schröder

          unsure, when i apply the CSS to your navbar i get the following result (http://nico-schroeder.com/):

          Screen Shot 2022-01-13 at 8.34.22 AM.png

          Screen Shot 2022-01-13 at 8.34.38 AM.png


          I do not see this white shadow sorry. Just to be sure the above code should added to your navbar and not the <header> . The CSS was applied to the header in your example website but Lay Theme uses a different setup.


          Best wishes 🏖
          Richard
          1 Reply Last reply
          0
          • N
            N
            Nico Schröder
            wrote on last edited by
            #5

            Dear Richard,

            that looks fine! I copied the CSS but I cant seem to save the changes to the website. How can i save the process after I alter the CSS? The way you put it in the screenshot looks perfect.

            Many thanks!
            Nico

            1 Reply Last reply
            0
            • RichardR
              RichardR
              Richard
              Global Moderator
              wrote on last edited by
              #6

              Dear Nico

              @Nico-Schröder

              Are you adding the code into your Website via:

              Lay options > Custom CSS & HTML > Custom CSS >

              https://laytheme.com/documentation/custom-css-styling.html


              Best wishes
              Richard
              1 Reply Last reply
              0
              • N
                N
                Nico Schröder
                wrote on last edited by
                #7

                I tried adding the code into the section, but I get a lot of "unexpected token" notifications though. I copied it the way you showed on the top.

                1 Reply Last reply
                0
                • RichardR
                  RichardR
                  Richard
                  Global Moderator
                  wrote on last edited by
                  #8

                  Dear Nico

                  @Nico-Schröder

                  The following code:

                  .navbar {
                   
                      -webkit-backdrop-filter: blur(.3rem);
                      backdrop-filter: blur(0.3rem);
                  
                      -webkit-box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
                      -moz-box-shadow: 0 1px 5px rgba(0,0,0,.1);
                      -ms-box-shadow: 0 1px 5px rgba(0,0,0,.1);
                      -o-box-shadow: 0 1px 5px rgba(0,0,0,.1);
                      box-shadow: 0 25px 5px rgb(0 0 0 / 10%);
                  }
                  
                  

                  Produces the following result:

                  Screen Shot 2022-01-19 at 10.51.30 AM.png


                  This is not the same for you?
                  The unexpected Token shouldn't be a problem:

                  Screen Shot 2022-01-19 at 10.53.12 AM.png

                  Result:

                  Screen Shot 2022-01-19 at 10.53.28 AM.png


                  Best wishes
                  Richard
                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  Online Users
                  Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                  laytheme.com
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search