I’m sure you’re right. It’s about the screen resolution, though not necessarily the size of the display itself.
Maybe I should have used pictures to start with.
Anyway, I will show you the 1st design that got me thinking about this.
Display 1 (13 in, 1280 x 800)
I guess my laptop’s old, since I looked up some screen resolutions and newer models are like double mine.
Anyway, the image/design is too wide for the wall, and so it goes into the sidebar area.
http://i.imgur.com/2uRTDXJ.png
Display 2 (11.6 in, 1366 x 768)
The image just about fits into the wall space, with the border sticking out a bit. Makes sense - since the screen goes 1366 across and not 1280, the site layout is probably wider.
http://i.imgur.com/VDZLwOl.png
We can look at your design too.
Display 1
Fits to the edges.
http://i.imgur.com/QZPogyc.png
Display 2
Since you centered it, it’s mostly the same except for the white space.
http://i.imgur.com/acSm3wU.png
I was mostly speaking to the case of the 1st design. If the image is big enough, define its width to be 100% (instead of however many pixels) and it will scale to different screen resolutions. Then you don’t get the case where images are too wide or too narrow.
If you use larger pictures in the future (i.e. >600px wide), they should auto-size to 100% of the wall or container that it’s in. You can manually define this too, and you shouldn’t have to deal with gaps.
I’m not sure I understand this. If there are two pictures next to each other, and they are defined to have widths of 50%, that would mean they both are 50% of the container wide and will fit side-by-side.
If instead, you define by pixels, when someone uses a larger or smaller resolution screen, that’s likely when the design will not appear as intended.
This tip was a suggestion, not to be taken as the right or only way to do things. Like you said, it may not work in some cases.
It just popped into my head that maybe using percent instead of pixel would be helpful to some. It seems to let things scale easier and you don’t have to think about how many pixels here or there to make things even.