What is causing the light blue outline and rubber banding/screen flashing issue when using link boxes on mobile in Webflow?

Published on
September 22, 2023

When encountering a light blue outline and rubber banding/screen flashing issue when using link boxes on mobile in Webflow, there are a few potential causes to consider. These issues often stem from differences in the default browser behavior across various devices. Here are some possible explanations and solutions you can try:

  1. CSS outline style: The light blue outline may be the default outline style applied by the browser when clicking or tapping an element. To remove this outline, you can use CSS to modify or remove it. Add the following CSS code to your project's custom code section:

    ```css
    :focus {
    outline: none;
    }
    ```

  2. Rubber banding/scrolling issue: The rubber banding or screen flashing effect occurs when the page is scrolled beyond its boundaries on mobile devices. To resolve this issue, you can try adding an overflow property to the body element. Add the following CSS code to your project's custom code section:

    ```css
    body {
    overflow: hidden;
    }
    ```

    Keep in mind that hiding the overflow may affect your layout or scrolling behavior. Make sure to test it thoroughly to ensure it doesn't cause any unintended issues.

  3. Hardware acceleration: In some cases, the rubber banding effect could be caused by hardware acceleration. To address this, you can try disabling hardware acceleration for the affected element or the entire site. Add the following CSS code to your project's custom code section:

    ```css
    .your-element-class {
    transform: translate3d(0, 0, 0);
    /_ or _/
    backface-visibility: hidden;
    }
    ```

    Replace .your-element-class with the appropriate class for the element you want to target.

By implementing these solutions, you should be able to address the light blue outline and rubber banding/screen flashing issue when using link boxes on mobile in Webflow. Remember to test your changes thoroughly on various devices and browsers to ensure optimal user experience.

Additional Questions:

  1. How do I remove the default link styles in Webflow?
  2. Why does my website have different appearances on different devices in Webflow?
  3. How can I optimize my website performance in Webflow?