devarthurribeiro / covid19-brazil-api

API com dados atualizados sobre o status do COVID-19 🦠
https://covid19-brazil-api.now.sh
MIT License
298 stars 46 forks source link

Fix Images without dimensions #87

Closed Carlos-Carsdfj closed 1 year ago

Carlos-Carsdfj commented 1 year ago

include width and height size attributes on you images Alternatively, reserve the required space with CSS aspect ratio boxes. This approach ensures that the browser can allocate the correct amount of space in the document while the image is loading. Modern browsers now set the default aspect ratio of images based on an image's width and height attributes so it's valuable to set them to prevent layout shifts. Thanks to the CSS Working Group, developers just need to set width and height as normal.