How can I fix the issue with border radius not displaying properly on iOS when applied to a parent div instead of the image itself in Webflow?

TL;DR
  • Apply border radius directly to images or set parent div overflow to hidden.
  • Ensure consistent sizing and block display for both the image and parent div.
  • Test the changes on an iOS device to confirm the fix.

Border radius on a parent div may not always render properly in iOS. Here's how to ensure it displays correctly.

1. Apply Border Radius Directly to the Image

  • Check if the border radius effect is critical to your design. If yes, apply the border radius directly to the image itself rather than relying on the parent div.

2. Use Overflow Hidden on the Parent Div

  • Select the parent div containing your image.
  • Set its overflow property to hidden in the styles panel. This ensures that the child elements like images will adopt the parent’s border radius.

3. Update Image Display Settings

  • Ensure the image is set to display as block or inline-block to prevent any top or bottom spacing issues that may interfere with border display.

4. Apply Consistent Sizing

  • Make sure the parent div and the image are the same size. This can help in aligning the border radius correctly across devices.

5. Test on an iOS Device

  • Preview your Webflow project on an actual iOS device. This step is crucial to confirming that the border-radius issue has been resolved.

Summary

To fix border radius issues in iOS for images within a parent div in Webflow, apply the border radius directly to the image or use overflow hidden on the parent div along with consistent sizing. Test changes on an iOS device to ensure proper display.

Rate this answer

Other Webflow Questions