Skip to content

Instantly share code, notes, and snippets.

View arthurbuhl's full-sized avatar
🏠
Working from home

Arthur G. Buhl arthurbuhl

🏠
Working from home
View GitHub Profile
@arthurbuhl
arthurbuhl / image-reset.css
Created February 27, 2024 05:32 — forked from palashmon/image-reset.css
A More Effective CSS Image Reset
/**
* This CSS block is a More Effective CSS Image Reset.
* It resets the default styles of an image element
* and adds some additional styles to improve its rendering.
*
* The `max-width: 100%;` ensures that the image does not exceed its container's width,
* while maintaining its aspect ratio with `height: auto;`.
*
* The `vertical-align: middle;` aligns the image vertically with the text.
*