PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 25, 2017 5:19 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Aug 21, 2017 1:25 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4335
Location: United Kingdom
Syntax: [ Download ] [ Hide ]
<img srcset='/images/responsive_475.jpg 475w,
/images/responsive_768.jpg 768w,
/images/responsive_1024.jpg 1024w,
/images/responsive.jpg 1920w,
/images/responsive.jpg 2560w'

(max-width: 475px) 475px,
            (max-width: 768px) 768px,
            (max-width: 1024px) 1024px,
            (max-width: 1920px) 1920px,
            (max-width: 2560px) 2560px'

 src='
/images/homepromo-responsive.jpg' alt='tag' />


On my iPhone 7, I am getting the 768 image, not the 475 image. I know because the 475 one is much taller than the 768 image.
I've seen it done without the max-width code. But even with that, it does't work.

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group