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. Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
  3. Menu + spaces between adapt to browser width

Menu + spaces between adapt to browser width

Scheduled Pinned Locked Moved Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
4 Posts 2 Posters 205 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.
  • P Offline
    P Offline
    PC
    wrote on Dec 10, 2020, 9:15 PM last edited by
    #1

    Hello there,
    Thanks for this great Theme and for all your effort! Right now I am wondering how to make a responsive menu. I have four menu points (just words in the same typesize) and I want them to take the whole browser width, for all desktop/tablet browser sizes. That means the spaces between the menu points should change. Is there a way to implement this? Thanks a lot!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on Dec 15, 2020, 5:06 AM last edited by
      #2

      Dear @PC

      I see in the 'Customize' menu that only px are available atm..
      Screen Shot 2020-12-15 at 5.59.55 PM.png

      However you could target the menu adding CSS and then give the Menu a 'Viewport' margin OR 'VH' setting "viewheight"
      The menu points will space themselves based on your browser's height:
      https://css-tricks.com/fun-viewport-units/

      So in 'Lay-options - 'Custom CSS & HTML" you would add some code to the top section - 'Custom CSS'

      Example:

      .laynav .menu-item {
          margin-bottom:10vh !important;
      }
      
      

      Good Luck and let me know how you go! :)

      Best Wishes
      Richard

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PC
        wrote on Jan 18, 2021, 7:12 PM last edited by
        #3

        Dear @Richard-K , thanks a lot for your helpful reply. I had not seen your answer for a long time and then changed the design because of other reasons. With the next website I will try that. Thanks for helping! Best, Pia

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Richard
          Global Moderator
          wrote on Jan 20, 2021, 8:36 AM last edited by
          #4

          Dear Pia @PC

          Cool, thanks for following up and concluding the thread :)
          Best of Luck wiht future Projects and thanks for using Lay Theme!

          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
          D
          dmncn
          10 minutes ago
          C
          craigfeldspar
          17 minutes ago
          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