Illustrating the utilization of responsive css in action:
Utilizing Large desktop view
@media (min-width: 1200px) {
#largeImage{
display: inline;
}
#smallImage{
display: none;
}
}
Adapting from Portrait tablet to landscape and desktop view
@media (min-width: 768px) and (max-width: 979px) {
#largeImage{
display: none;
}
#smallImage{
display: inline;
}
}
Transitioning from Landscape phone to portrait tablet view
@media (max-width: 767px) {
/* replicate tablets' styling or include this width range within the tablet style*/
}
Sizing for Landscape phones and below
@media (max-width: 480px) {
/* replicate tablets' styling or incorporate this width range in the tablet styling */}
Adjust the image display based on the screen width by using two images, one with
display: none;
and the other with:
display: inline;
Switch between these for a more optimized experience on smaller screens.