/* Use a media query to add a break point at 800px: */ @media screen and (max-width:50em) { .img1 { width: 50% !important; } }