Feb 9, 2021
You have to specify the width & height on images unless you're using object-fit: cover or object-fit:contain with a surrounding div that is position: relative and has a specified width or height.
You have to specify the width & height on images unless you're using object-fit: cover or object-fit:contain with a surrounding div that is position: relative and has a specified width or height.
Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.