Lets say a viewer has a browser at 1024x768 and a fixed background is shown.

The next viewer has a monster 1920x1200 and another background to that size is shown.

Can you stretch to fit?

  • I just wanted to mention that its a poor assumption that if the monitor is big the browser window will be. My monitor is big but my browser viewport is 950px wide because that gives readable line lengths. Richard Grevers about 7 years ago

2 answers

Andy Ford 533
4
points
This was chosen as the best answer

This CSS-Tricks article covers 2 possible approaches plus there are some other options mentioned in the comments.

Answered about 7 years ago by Andy Ford
  • Note that the second works better in Opera (#1 scrolls the background) Richard Grevers about 7 years ago
0
points

Thanks. Exactly what Im after.

Answered about 7 years ago by Paul@Rezolution