You can do it in css using @media tags
@media only screen and (min-width: 1024px) { img{ display:block; } } @media only screen and (max-width: 1024px) { img{ display:none; } }
In @media tags, you can target a specific device or everything as on a screen , affect printing , a mobile device, etc. or all
To do this in javascript / jquery, refer to the following article,
How to detect in jquery if screen resolution changes?
gnanz
source share