I have my product pages arranged like this:
home_directory/products/product_one/
home_directory/products/product_two/
etc
Each directory has its own "index.html," "first_image_small.jpg," "first_image_large.jpg," "second_image....you get the idea.
I'm using CSS "background-image" and Media Queries so that those images will switch out for screen size both "onLoad" AND when someone flips portrait/landscape or resizes their browser. (by the way, please check out this question if you have an idea how to do that in JavaScript because the only answer so far is "onLoad"-only).
Anyway, according to this question, if I try to link each "index.html" to a single stylesheet it will look for the images relative to the stylesheet's directory instead of each "index.html"s (and yes, I understand why it needs to be that way).
The obvious solution is to duplicate the stylesheet in each product directory, but that's kind of a mess for maintenance. Any more elegant solutions?