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

Navigation bar

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 950 Views 2 Watching
  • 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
    A
    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
      F
      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
        A
        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
          arminunruhA
          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
            A
            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
              arminunruhA
              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
                arminunruhA
                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
                  A
                  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

                  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