Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 13, 2019 02:33 pm GMT

Planning for Responsive Images

The first time I made an image responsive, it was as simple as coding these four lines:

img {  max-width: 100%;  height auto; /* default */}

Though that worked for me as a developer, it wasnt the best for the audience. What happens if the the image in the src attribute is heavy? On high-end developer devices (like mine with 16GB RAM), few or no performance problems occur. But on low-end devices? Its another story.

The above illustration isnt … Read article

The post Planning for Responsive Images appeared first on CSS-Tricks.


Original Link: https://css-tricks.com/planning-for-responsive-images/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks