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. Navigation bar

Navigation bar

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 122 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.
  • A Offline
    A Offline
    annikaop2693
    wrote on last edited by annikaop2693
    #1

    Hey,

    I've created the following website with laytheme: https://elkedenda.com/
    When I lower the size of the browser window the navigation moves over the logo top left. I already tried to change the breakpoint for tablets but still it doesn't work. Any idea how to fix this?
    At the moment the navigation bar is top right aligned. If I change this to top left aligned the issue is solved but then the "info" point gets lost when changing the window size in the browser.

    Thanks in advance
    Annika

    1 Reply Last reply
    0
    • F Offline
      F Offline
      felix_rabe
      wrote on last edited by felix_rabe
      #2

      nav.primary ul {
      gap: 750px;
      }

      you have this big gap between your menu points, that is set in pixel and doesn't change according to the window size.

      maybe you want to set it in % so it gets smaller with smaller window size.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        annikaop2693
        wrote on last edited by
        #3

        Hey Felix,

        many thanks for your help and reply. Unfortunatley the gap between the menu points only allows pixel no other setting options.

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          in custom css (not custom css for desktop or mobile):

          @media (max-width: 800px) {
                nav.desktop-nav.primary ul {
                  gap: 50px;
              }
          }
          
          @media (min-width: 801px) {
                nav.desktop-nav.primary ul {
                  gap: 750px;
              }
          }
          

          and remove this css:
          nav.primary ul {
          gap: 750px;
          }

          1 Reply Last reply
          0
          • A Offline
            A Offline
            annikaop2693
            wrote on last edited by annikaop2693
            #5

            Hey Armin,

            many thanks, much appreaciated.
            I've tried to enter the above custom css but its still not working 100%.
            First of all I don't know where to delete the css that you mentioned below as it doesn't show up anywhere in the css descriptions?

            Also i got a yellow attention mark that says 'unknown property 'gap''
            For 'nav.desktop-nav.primary..' it keeps telling me "Dont use adjoining classes"
            Any further ideas about how to solve this?

            1 Reply Last reply
            0
            • arminunruhA Offline
              arminunruhA Offline
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              elke what is your goal?

              do you want one menupoint in the top center, one in the top right?
              then delete this css and use multiple menus:
              https://laytheme.com/documentation/menus.html#multiple-menus

              create 2 menus, put one menupoint in one menu each

              then in the customizer, put one menu in the top center and one in the top right

              otherwise, the css that i gave you works, but maybe the values need to be changed like:

              @media (max-width: 1020px) {
                    nav.desktop-nav.primary ul {
                      gap: 50px;
                  }
              }
              
              @media (min-width: 1021px) {
                    nav.desktop-nav.primary ul {
                      gap: 450px;
                  }
              }
              
              

              Also i got a yellow attention mark that says 'unknown property 'gap''
              For 'nav.desktop-nav.primary..' it keeps telling me "Dont use adjoining classes"
              Any further ideas about how to solve this?

              this you can ignore

              First of all I don't know where to delete the css that you mentioned below as it doesn't show up anywhere in the css descriptions?

              felix told you to use some css, i told you to use mine so to remove the one he gave you first.
              i dont know where you put his css

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by arminunruh
                #7

                When I lower the size of the browser window the navigation moves over the logo top left.

                ok

                so using this css that felix gave you:

                nav.primary ul {
                gap: 750px;
                }

                this just creates a big gap between the two menupoints:

                Screenshot 2024-07-08 at 11.39.07.png

                i dont think that was even the question. i think in the end what it was about was:
                you dont want your menupoint "projects and exhibitions" to overlap "elke denda", your site title.
                when i resize the screen to 600px wide, right before it jumps over to the mobile menu, your menupoint doesnt even overlap the site title:

                Screenshot 2024-07-08 at 11.40.04.png

                so i think you can just remove all of this custom css altogether and you should be good to go,
                or maybe i dont understand the problem

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  annikaop2693
                  wrote on last edited by
                  #8

                  Thank you so much for your detailed reply! I managed to get the solution I aimed for via 2 menus. Thanks again :)

                  Best wishes,
                  Annika

                  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
                  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