I need to display multiple images in a row that fill the screen width:
<img src="1.jpg" style="max-width:25%">
<img src="2.jpg" style="max-width:25%">
<img src="3.jpg" style="max-width:25%">
<img src="4.jpg" style="max-width:25%">
Some pages have 4 images, while others may have 5, 6, etc.
I want a solution in CSS that can handle different numbers of images without changing the max-width for each page individually. Is there a way to achieve this?
p.s. I prefer not to use tables or background-images since a JavaScript plugin needs to recognize them as img tags, and using img tags is also more search engine friendly.