Responsive Image Gallery

Pastel art made with dall.e.2 open ai in NightCafe app, November 2022.












This example use media queries to re-arrange the images on different screen sizes: for screens larger than 700px wide, it will show four images side by side, for screens smaller than 700px, it will show two images side by side. For screens smaller than 500px, the images will stack vertically (100%).

You can learn more about media queries and responsive web design in W3schools CSS Tutorial.