Help forum

Zoom in on form

  • Samuel T

    2 years ago

    How do I prevent zooming in on forms when focused?
  • Andreas Møller

    2 years ago

    CMD/CTRL + scroll
  • Or pinch on a trackpad
  • Samuel T

    2 years ago

    thanks @Andreas Møller but I meant for the user - I have a login page and on mobile, when I tap to enter details everything zooms in. I have a code snippet to prevent that in Webflow but don't know how to do it here
  • Sorry I should have been clearer earlier
  • Andreas Møller

    2 years ago

    Ah you mean on mobile.
    Are you sure you want to prevent that? It does it for a reason
  • You can set a meta tag (in the page) or make sure the font size of the input is at least 16px
  • Samuel T

    2 years ago

    @Andreas Møller Thank you
  • It worked, one last thing sir
    How about preventing the whitespace at the bottom of the page when scroll ends
  • Andreas Møller

    2 years ago

    Uh that depends on why it is there. It could be extra padding or margin on an element
  • Samuel T

    2 years ago

    https://cont-peia_affiliates.toddle.site/
    I don't really have any extra padding or margin - to be fair it does happen on most sites
  • 1282828654681788527-IMG_1972B8E93767-1.jpeg
  • When you get to the end an still "force scroll"
  • Lucas G

    2 years ago

    This doesn’t appear for me on mobile
  • Samuel T

    2 years ago

    I see, it appears when you get to the end of the page and still force swipe up
  • Lucas G

    2 years ago

    That's a 'rubber band' effect though no? It comes back to normal
  • Samuel T

    2 years ago

    It does - its just a bit annoying haha
    I add css to prevent that in webflow, just cant do it here
  • Lucas G

    2 years ago

    Sure you can, CSS works anywhere
  • Samuel T

    2 years ago

    I added it to the page but no effect
  • Lucas G

    2 years ago

    What is the code
  • Samuel T

    2 years ago

    1282837764018012263-Screenshot_2024-09-10_at_00.59.07.png
  • <style>
    body {
    overscroll-behavior: none;
    }
    </style>
  • Lucas G

    2 years ago

    Remove the <style> tags
  • Samuel T

    2 years ago

    I did - still
  • 1282838209822199809-Screenshot_2024-09-10_at_01.00.55.png
  • Lucas G

    2 years ago

    I believe you have to set it on the document. So html { overscroll-behavior: none }
  • Samuel T

    2 years ago

    Yes I just tried

    html, body {
    overscroll-behavior: none !important;
    }

    and it worked, thanks
  • About adding the custom css and stuff, is there a way to expand so that if its a long block of code you can see and edit it easily?
  • Samuel T

    2 years ago

    Do units like SVH and DVH work in toddle?
  • Samuel T

    2 years ago

    I just realised everything works in the custom css field 🙂
  • Lucas G

    2 years ago

    It should work with just html { overscroll-behavior: none }
  • You generally want to avoid having to resort to using !important
  • Not the end of the world though
  • All CSS works in toddle
  • And most of it doesn't need to go in the header
  • Samuel T

    2 years ago

    Yes I mean the global ones that need to go in the header
  • Tod

    2 years ago

    Great energy @Samuel T! Your continuous contribution to the toddle Community just made you advance to Community Level 5!