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. Mobile menu left-alignment padding

Mobile menu left-alignment padding

Scheduled Pinned Locked Moved General Discussion
8 Posts 2 Posters 2.5k 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.
  • G
    G
    Georges
    wrote on last edited by
    #1

    Hello Lay Theme crew,

    I’m customising my mobile menu to align left, as seen here http://laythemeforum.com/topic/634/mobile-view-menu-align-to-the-left/3, but the padding isn’t having any effect. The menu is too close to the left edge of the screen, and should instead left-align with the main site title (also left-aligned) and the overall site content. I would expect a left-aligned mobile menu to take on the same left/right space percentage (5% in my case) as the default set in Customizing ▸ Mobile (Smartphone) ▸ Mobile Spaces. I've tried changing it to 5%, 10% padding, still no change.

    Many thanks for your help.

    alt text

    1 Reply Last reply
    0
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Hi Georges!

      Can you post a link to your website?

      Then I can have a look.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • G
        G
        Georges
        wrote on last edited by
        #3

        Thanks Marius. It's type.practise.studio.

        1 Reply Last reply
        0
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          Hi Georges!

          Try to add this to your Custom CSS for Mobile Section:

          .use-mobile-menu nav.primary li a {
              padding-left: 5vw;
          }
          

          VW is related to the window width.

          I hope that helps!

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • G
            G
            Georges
            wrote on last edited by
            #5

            Hi Marius, thanks for your suggestion. I've tried it, and it doesn't appear to make any difference. The mobile menu nav list is still where it has always been positioned, too far to the left, misaligned with the rest of the site's content. I tried 10vw, 15vw, just to see if it's doing anything. No change.

            This is what I'm now running:

            .use-mobile-menu nav.primary li a {
            text-align: left;
            padding-left: 5vw;
            }

            1 Reply Last reply
            0
            • mariusjopenM
              mariusjopenM
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              Hi Georges,

              try this one:

              body.use-mobile-menu nav.primary li a {
                  padding-left: 5vw !important;
              }
              
              

              Let me know if that works!

              Best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              1
              • G
                G
                Georges
                wrote on last edited by
                #7

                I realise that I never ended up confirming that your last suggestion worked! Many belated thanks!

                1 Reply Last reply
                1
                • mariusjopenM
                  mariusjopenM
                  mariusjopen
                  Global Moderator
                  wrote on last edited by
                  #8

                  Very happy to hear :-)

                  www.mariusjopen.world

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