How to Properly Size Images with Media Queries?

0
0
Asked By Pix3lPioneer On

I'm curious about the best practices for sizing images when using media queries. Should I use percentages, pixels, ems, rems, or viewport units like vw/vh? I currently use pixels to resize images for larger screens (min-width: 1000px), but I feel like there's a better approach. What do you all recommend?

1 Answer

Answered By ImageWhiz92 On

Honestly, the best approach is usually to set your images to 100% width of their container. This way, they automatically adjust to fit the viewport without overflowing. It's a simple and effective method to keep images responsive across different device sizes!

ResponsiveRita -

So just width: 100% and height: auto, right?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.