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. Bug Reports
  3. customizer - menu - padding top % are vW and not vh

customizer - menu - padding top % are vW and not vh

Scheduled Pinned Locked Moved Bug Reports
5 Posts 2 Posters 491 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.
  • StarcS
    StarcS
    Starc
    wrote on last edited by
    #1

    Hi Armin

    Padding top/bottom s' % of mobile menu is for vw and not for vh.

    can you change to vh?

    1.png 2.png

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

      hey, next update will include:

      image.png

      1 Reply Last reply
      0
      • StarcS
        StarcS
        Starc
        wrote on last edited by
        #3

        Thank you @arminunruh, why not let user set %vh or %vw? There is some selector that not allow to specify what kind of %.

        Is this too complicated? for example in customizer the padding top of the sitetite in % is refering to the width.

        From a user perspective though, it can feel a bit unintuitive, especially when working with vertical spacing like padding-top, which visually feels related to height.

        If choosing the unit were possible, it would be very nice

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

          usually % is always width based, even if you set a margin top spacing.

          quoting from gemini:

          " if i set margin-top in % in css the percentage is based on a width right?

          Yes, you've got it exactly right—though I'll admit, it’s one of the most "wait, really?" quirks of CSS.

          Even for vertical properties like margin-top and margin-bottom, the percentage is calculated based on the width of the containing block, not the height.
          Why does it work this way?

          The logic dates back to the early days of the web.
          "

          my comment about this:

          additionally, % based spacing values often are only percentages based on the width of the parent container, not the whole width of the browser

          that is why in the background, i use vw instead of %
          additionally, sometimes i actually use 100vw - space bar width
          cause 100vw is 100% width of browser + space bar width, which can create x axis overflow

          i think i will leave it the way it is for now

          1 Reply Last reply
          0
          • StarcS
            StarcS
            Starc
            wrote on last edited by
            #5

            Thank you for the clarification Armin!

            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