[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/resp/ - Responsive Design

Mobile-first approaches & cross-device solutions
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1764814799529.jpg (167.74 KB, 1080x720, img_1764814784466_c26zp5yi.jpg)

c778e No.857

So you know how sometimes our images can clash with our CSS styles? Well, I've got a cool trick to share that I picked up from the Request Metrics article on DavidWalshBlog. Turns out, setting image dimensions within the img tag helps to improve your website's score! But here's the catch: in this responsive world we live in, we need something more flexible… By using CSS, you can actually override those HTML width and height attributes for each device size, ensuring a smoother layout shift experience. Thoughts? Anyone tried this yet or have any interesting variations to share? Let's discuss!

Source: https://davidwalsh.name/css-override-width-height


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">