Ok. I have a small problem. I have a friend that has a title picture for his website. I forget the actual size of the pic at the moment. Anyway, at resolutions of 1024x768 and up everything looks fine. the problem is when you scale down to 800x600 and (shudder) lower. The title pic is surrounded by a colored background "box" and on the higher resolutions you can see this colored box surrounding the pic but on the lower resolutions the pic extends beyond the right and left borders of the colored box.
So, without making everything in the page a set size and therefore making users with lower resoltions scroll to see the image and/or page, how can I resize this image only for lower resolutions?
I would prefer a solution using either JavaScript or PHP since I have a handle on both of those languages but am willing to try any language. I have found lots of scripts in both JavaScript and PHP to resize but none that will detect the current resolution setting and resize accordingly.
So, without making everything in the page a set size and therefore making users with lower resoltions scroll to see the image and/or page, how can I resize this image only for lower resolutions?
I would prefer a solution using either JavaScript or PHP since I have a handle on both of those languages but am willing to try any language. I have found lots of scripts in both JavaScript and PHP to resize but none that will detect the current resolution setting and resize accordingly.