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. Lay Buttons: labels off-centered depending on used browser ...

Lay Buttons: labels off-centered depending on used browser ...

Scheduled Pinned Locked Moved Bug Reports
4 Posts 2 Posters 426 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.
  • fabiandraxlF
    fabiandraxlF
    fabiandraxl
    wrote on last edited by
    #1

    Hej @arminunruh

    Created this new site and I noticed, that the button labels are vertically misaligned i.e. off-centered ... i believe it has something to do with the integration of Adobe Fonts ... could it be that the browsers use different font files or something like that? I know that browser interpret and render fonts differently but something like that never happened before with any of my other lay-sites.

    Safari Looks fine, Mobile and Desktop:

    IMG_8258.PNG

    Bildschirmfoto 2023-10-24 um 02.38.25.png

    Firefox Desktop and Mobile is broken:
    Bildschirmfoto 2023-10-24 um 02.38.52.png
    Screenshot_20231024_024532_Firefox.jpg

    Chrome Desktop is fine, Mobile is broken too.

    Could you please help me soon? :) Thank you, Fabi

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

      dont know why it happens!

      https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent

      <script>
      if (navigator.userAgent.includes("Firefox")) {
      document.body.classList.add("firefox");
      }
      </script>
      <style>
      .laybutton2{
      padding-top: 13px!important;
      }
      </style>
      

      :)

      fabiandraxlF 1 Reply Last reply
      0
      • arminunruhA arminunruh

        dont know why it happens!

        https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent

        <script>
        if (navigator.userAgent.includes("Firefox")) {
        document.body.classList.add("firefox");
        }
        </script>
        <style>
        .laybutton2{
        padding-top: 13px!important;
        }
        </style>
        

        :)

        fabiandraxlF
        fabiandraxlF
        fabiandraxl
        wrote on last edited by fabiandraxl
        #3

        @arminunruh

        I added the following to my custom <head> content:

        <script>
          if (navigator.userAgent.includes("Firefox") || navigator.userAgent.includes("Android")) { document.documentElement.classList.add('offcenter') }
        </script>
        

        And Custom CSS:

        .offcenter .laybutton1, .offcenter .laybutton2 {
                padding-bottom: calc(10px - .5ex) !important;
        }
        

        It works, but what is about Chrome Mobile, Samsung Browser etc ... any Ideas?
        What about the "no-chrome-no-safari" u are using in lay?

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

          It works, but what is about Chrome Mobile, Samsung Browser etc ... any Ideas?

          you need to find out the navigator.userAgent in javascript with these browsers and create custom css / js

          What about the "no-chrome-no-safari" u are using in lay?

          i dont understand your question

          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
          R
          robertobarbes
          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