If two images in your Webflow portfolio-grid page are displaying with different heights in Safari compared to Chrome and Firefox, there could be several factors causing this issue. Here are some possible reasons and solutions:
1. Browser rendering differences: Different web browsers can interpret and render CSS styles differently, which might cause variations in image display. Safari, in particular, might have different default styles or rendering rules compared to Chrome and Firefox. To address this, you can try adjusting the CSS styles specifically for Safari using browser-specific CSS prefixes or media queries. For example, you can use the `@supports` rule with the `-webkit-` prefix to target Safari and apply specific styles or dimensions to the images.
2. Image optimization: While you mentioned that the images were uploaded to the CMS as 800x600 pixels, it's possible that the images are being scaled or resized differently by the browsers. To ensure that the images are displayed consistently across browsers, you can manually resize and optimize them before uploading to Webflow. You can use image editing software like Photoshop or online tools to set the precise dimensions, resolution, and compression level of the images. By providing the browsers with images that have the exact dimensions you want, you can minimize variations in display.
3. Responsive image attributes: You mentioned that some images have their responsive images included in the markup, while these two do not. This suggests that the missing responsive image attributes might be causing the difference in display. Webflow uses the responsive images feature to automatically generate different versions of an image for different screen sizes and resolutions. To ensure consistent display, you may need to manually add the responsive image attributes to these two images. In the Webflow CMS, select the respective image elements, go to the settings panel, and add the necessary responsive image attributes.
4. Clearing browser cache: It's also worth considering whether the images are being cached differently by each browser, which can result in inconsistent display. Clearing your browser cache on all browsers could help resolve this issue. Additionally, ask other users to test your portfolio-grid page and see if they experience the same display differences. If the issue persists only on your end, it might be related to your specific browser settings or extensions.
5. Custom code/scripts: Although you mentioned that disabling custom scripts did not solve the problem, it's essential to thoroughly check any custom code or scripts you might have on your Webflow project. Sometimes, conflicting or faulty custom code can interfere with the rendering of certain elements or affect browser compatibility. Ensure that your custom code is properly implemented and doesn't interfere with the image display.
Remember to preview your changes in different browsers throughout the troubleshooting process to check if the display inconsistencies have been resolved.