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. full width space in navbar / menu and evenly distribute menu items to fill out whole navbar

full width space in navbar / menu and evenly distribute menu items to fill out whole navbar

Scheduled Pinned Locked Moved General Discussion
16 Posts 4 Posters 2.1k Views 1 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.
  • arminunruhA arminunruh

    oh yea you can do it like that too

    mh

    F
    F
    frittata_studio
    wrote on last edited by
    #6

    @arminunruh Fantastic, thank you so much for your help

    1 Reply Last reply
    0
    • arminunruhA arminunruh

      oh yea you can do it like that too

      mh

      F
      F
      frittata_studio
      wrote on last edited by frittata_studio
      #7

      @arminunruh sorry Armin, quick question

      I edited the code in this way in the end:

      nav.primary{
          width: 95%;
          display: -webkit-flex;
          display: flex;
          -webkit-justify-content: space-between;
          justify-content: space-between;
      }
      
      
      nav.primary li{
          display: block;
          padding-right: 9vw;
          padding-left: 9vw;
      }
      

      But there is still something strange in that, basically, I would like to have the first text aligned to the margin left and the last voice in the menu should be aligned at the margin right.

      If you look the navbar at this moment, they are all evenly spaced but they are all centered.

      Screenshot 2023-04-19 at 11.12.29.png
      Screenshot 2023-04-19 at 11.12.03.png

      There is a way to update it?

      Thanks!

      panteleyP 1 Reply Last reply
      0
      • F
        F
        frittata_studio
        wrote on last edited by
        #8

        Fixed!

        In case someone needs it:

        nav.primary{
            width: 97.5vw;
            display: -webkit-flex;
            display: flex;
            -webkit-justify-content: space-between;
            justify-content: space-between;
            flex-wrap: wrap
        }
        
        nav.primary ul{
            display: flex;
            justify-content: space-between;
            flex: 1;
        }
        
        1 Reply Last reply
        2
        • arminunruhA
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #9

          nice! very good

          1 Reply Last reply
          0
          • F frittata_studio

            @arminunruh sorry Armin, quick question

            I edited the code in this way in the end:

            nav.primary{
                width: 95%;
                display: -webkit-flex;
                display: flex;
                -webkit-justify-content: space-between;
                justify-content: space-between;
            }
            
            
            nav.primary li{
                display: block;
                padding-right: 9vw;
                padding-left: 9vw;
            }
            

            But there is still something strange in that, basically, I would like to have the first text aligned to the margin left and the last voice in the menu should be aligned at the margin right.

            If you look the navbar at this moment, they are all evenly spaced but they are all centered.

            Screenshot 2023-04-19 at 11.12.29.png
            Screenshot 2023-04-19 at 11.12.03.png

            There is a way to update it?

            Thanks!

            panteleyP
            panteleyP
            panteley
            wrote on last edited by panteley
            #10

            @frittata_studio @arminunruh Hey, is it possible to add a certain spacing from the edges of the screen, left and right, in % or px? So they stick whithin website's frame spacing when you resize the browser 🤔

            111.png 222.png

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

              @frittata_studio said in full width space in navbar / menu and evenly distribute menu items to fill out whole navbar:

              nav.primary{
              width: 97.5vw;

              the width: 97.5vw determines the width of the nav

              just do

              nav.primary{
                  width: 100%;
                  display: -webkit-flex;
                  display: flex;
                  -webkit-justify-content: space-between;
                  justify-content: space-between;
                  flex-wrap: wrap
                  padding-left: 0.5%;
                  padding-right: 0.5%;
                  box-sizing: border-box;
              }
              
              nav.primary ul{
                  display: flex;
                  justify-content: space-between;
                  flex: 1;
              }
              

              here im using 0.5% for padding-left and -right, because that is your frame-left and frame-right value

              panteleyP 2 Replies Last reply
              0
              • arminunruhA arminunruh

                @frittata_studio said in full width space in navbar / menu and evenly distribute menu items to fill out whole navbar:

                nav.primary{
                width: 97.5vw;

                the width: 97.5vw determines the width of the nav

                just do

                nav.primary{
                    width: 100%;
                    display: -webkit-flex;
                    display: flex;
                    -webkit-justify-content: space-between;
                    justify-content: space-between;
                    flex-wrap: wrap
                    padding-left: 0.5%;
                    padding-right: 0.5%;
                    box-sizing: border-box;
                }
                
                nav.primary ul{
                    display: flex;
                    justify-content: space-between;
                    flex: 1;
                }
                

                here im using 0.5% for padding-left and -right, because that is your frame-left and frame-right value

                panteleyP
                panteleyP
                panteley
                wrote on last edited by
                #12
                This post is deleted!
                1 Reply Last reply
                0
                • arminunruhA arminunruh

                  @frittata_studio said in full width space in navbar / menu and evenly distribute menu items to fill out whole navbar:

                  nav.primary{
                  width: 97.5vw;

                  the width: 97.5vw determines the width of the nav

                  just do

                  nav.primary{
                      width: 100%;
                      display: -webkit-flex;
                      display: flex;
                      -webkit-justify-content: space-between;
                      justify-content: space-between;
                      flex-wrap: wrap
                      padding-left: 0.5%;
                      padding-right: 0.5%;
                      box-sizing: border-box;
                  }
                  
                  nav.primary ul{
                      display: flex;
                      justify-content: space-between;
                      flex: 1;
                  }
                  

                  here im using 0.5% for padding-left and -right, because that is your frame-left and frame-right value

                  panteleyP
                  panteleyP
                  panteley
                  wrote on last edited by
                  #13

                  alt text

                  1 Reply Last reply
                  1
                  • L
                    L
                    layotto
                    wrote on last edited by
                    #14

                    Hello
                    Has anyone done a full width box menu in laytheme before?
                    Here is an example of what I would like to do … (kind of)
                    https://www.newexhibitions.com
                    With the title in the left most box and the menu in boxes streching over the entire width of the screen. Hovering the boxes (not the text only) should show the active link.
                    I was fiddling with the code above and managed to do boxes with an outline but that was about it.
                    Any ideas someone?
                    Thanks,
                    Peter

                    1 Reply Last reply
                    0
                    • L
                      L
                      layotto
                      wrote on last edited by
                      #15

                      haha … just noticed that laytheme.com actually has almost what I am after. Just without the spacers between the boxes

                      1 Reply Last reply
                      0
                      • L
                        L
                        layotto
                        wrote on last edited by
                        #16

                        Here is what I've got so far (objective to changes)
                        https://artdocu.net
                        I can't get vertical lines and the links are on the text only - not the whole boxes …
                        Any help appreciated

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