How to create a media query:
Media Queries are a new technique introduced in CSS3 that change the presentation of content based on different viewport sizes.
Media query examples:
@ media ( max-width: 100px ) { /* CSS Rules */ }
@ media ( min-height: 350px ) { /* CSS Rules */ }
How to make images responsive:
. responsive-img {
max-width: 100% ;
height: auto ;
How to use a Retina Image for Higher Resolution Displays
Some displays are made with higher pixel density nowadays, a way to insure that your image will not look pixelated in such displays is by setting their width and height to half their original values.
The four different viewport units: