Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 102 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 Offline
    N Offline
    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 Offline
      RichardR Offline
      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 Offline
        N Offline
        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 Offline
          RichardR Offline
          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 Offline
            N Offline
            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 Offline
              RichardR Offline
              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 Offline
                N Offline
                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 Offline
                  RichardR Offline
                  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
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  I also code custom websites or custom Lay features.
                  💿 Email me here: 💿
                  info@laytheme.com

                  Before you post:
                  1. When using a WordPress Cache plugin, disable it or clear your cache.
                  2. Update Lay Theme and all Lay Theme Addons
                  3. Disable all Plugins
                  4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                  This often solves issues you might run into

                  When you post:
                  1. Post a link to where the problem is
                  2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                  3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                  Online Users
                  dafvD
                  dafv
                  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