DEV Community


Discussion on: Quick Tips: How to fix "Image elements do not have explicit width and height" in Page Speed Insights / Lighthouse

afif profile image
Temani Afif

You don't really need to set height:0;overflow:hidden since your div is empty

inhuofficial profile image
InHuOfficial Author

Thanks as always bud, I added a note next to them for clarity.