PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Oct 23, 2017 9:26 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Jul 11, 2017 12:49 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4349
Location: United Kingdom
Hi
I have this code:
Syntax: [ Download ] [ Hide ]
<img
 srcset='/images/-websites_475.jpg 475w,
/images/-websites_768.jpg 768w,
/images/-websites_1024.jpg 1024w,
/images/-websites.jpg 1920w,
/images/-websites.jpg 2560w'

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

 src='/images/-websites.jpg' alt='easy websites' />


On an iphone7 it is NOT showing the 475 version, but the 1024 version, but it is using the max-width 768px CSS.

How is that possible?

_________________
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: Exabot [Bot] 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