I have 4 images (all the same width and all the same height) that I want displayed side by side on the very top of the webpage, but the trick is that is needs to take up the entire browsers width $(window).width()
in jQuery.
My questions are:
First, is this possible?
If so:
- What is the best way to do this for all browser widths (or most of them)?
- Should it be 1 image instead of 4?
- What are the advantages/disadvantages of either way (1 image vs. 4 images, and vice versa)?
- Do I have to use jQuery or another language to calculate the screen's width and load up different size images for each different size screen width? Or can this be done with CSS natively?
- What width size is recommended to use on, either, all 4 images, or if I make these images 1 image, what width would be recommended than?
NOTES: I don't want to stretch the images wider, cause that will cause it to look distorted, but if I have big images and size them down, than it affects the load of the page (dropping performance). How to do this so that I don't have to make any sacrifices in look and/or performance? If possible, I would also like it to look right in phones... but that's not a huge priority, but would be nice, if possible.