What is the issue with the shadow on the form input fields in Webflow when viewed on mobile browsers?

Published on
September 22, 2023

When viewing form input fields with a shadow in Webflow on mobile browsers, there is an issue where the shadow may not display correctly and may appear distorted or misplaced. This issue can occur due to the way mobile browsers render CSS styles, and it requires some additional steps to ensure the shadows appear correctly on mobile devices. Here's how you can address this issue:

  1. Use box-shadow instead of drop-shadow: Instead of using the filter: drop-shadow() property to apply shadows to the form input fields, use the box-shadow property. This is because mobile browsers may not render the drop-shadow filter property correctly.

  2. Provide fallback text-shadow: In addition to the box-shadow property, you can also provide a text-shadow property as a fallback. This can help ensure that the shadow is still visible even if the mobile browser doesn't render the box-shadow property correctly.

  3. Adjust the shadow properties: Experiment with different values for the box-shadow property to ensure that the shadow appears correctly on mobile devices. This may involve adjusting the x and y offsets, blur radius, and color of the shadow.

  4. Test on different mobile devices and browsers: After applying the aforementioned changes, it's important to test the form input fields on different mobile devices and browsers to ensure that the shadow appears correctly and is consistent across all platforms.

By following these steps, you can address the issue with shadows on form input fields in Webflow when viewed on mobile browsers and ensure a consistent and visually appealing user experience.

Additional Questions:

  1. How can I add shadows to form input fields in Webflow?
  2. What are some common CSS rendering issues on mobile browsers?
  3. How can I test my Webflow website on different devices and browsers?