Currently, I am working on creating a layout with two columns: one containing short lists of text and the other displaying photos. The goal is to have the text and images displayed alternatively. For example...
LIST IMAGE
LIST IMAGE
LIST IMAGE
When the webpage is viewed on a narrow browser window or a mobile device, the design should switch to showcasing an image followed by a list continuously, like this...
IMAGE
LIST
IMAGE
LIST
IMAGE
LIST
Initially, my plan was to alternate the items in the HTML code and then float the images to the right for larger screens. This worked well for mobile view, but at wider browser sizes, the alignment between the images and the headings became awkward, evidenced here:
I'm unsure of how to address this issue without resorting to maintaining separate layouts for different screen sizes: one with all the lists and images aligned and one with alternating elements for smaller displays.
Are there any alternative suggestions or approaches to tackle this challenge?