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

Mobile menu left-alignment padding

Scheduled Pinned Locked Moved General Discussion
8 Posts 2 Posters 1.3k 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.
  • G Offline
    G Offline
    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:4567/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 Offline
      mariusjopenM Offline
      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 Offline
        G Offline
        Georges
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • mariusjopenM Offline
          mariusjopenM Offline
          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 Offline
            G Offline
            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 Offline
              mariusjopenM Offline
              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 Offline
                G Offline
                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 Offline
                  mariusjopenM Offline
                  mariusjopen
                  Global Moderator
                  wrote on last edited by
                  #8

                  Very happy to hear :-)

                  www.mariusjopen.world

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