Is there a way to ensure that my images have a width of 220px, unless on devices with smaller screens where it would exceed 50% of the screen width?
For instance, if I set the image width to 220px maximum, it may take up more than 50% of the screen width on an iPhone 6 4.7". In such cases, I would like the CSS rule to be max-width: 50%, rather than 220px.
What is the best approach to achieve this responsive design challenge?