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. 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 70 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.
  • fabiandraxlF Offline
    fabiandraxlF Offline
    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 Offline
      arminunruhA Offline
      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 Offline
        fabiandraxlF Offline
        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 Offline
          arminunruhA Offline
          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
          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
          A
          alasdair17
          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