I am trying to fill the screen with divs, and I'm thinking about using php to dynamically resize the divs based on the screen resoultion, so, for example, 16 divs always appear in each row.
Example A is the problem, in Example B I resize the divs to fit the screen.
So, is this efficient? I would have something like this for each background image of each div:
/bgimage.php?id=123456&resize=125
Where resize is calculated by dividing the browser width by 16, or the # of divs I want in each row.
I'm not sure about using this method, because I don't want the divs to appear to small if the resolution is very low.
Any other suggestions? Could this be done better using just CSS or javascript? The