J james169 New Member โ 15 โ Impact 0 Mar 1, 2009 838 views 1 reply #1 How do I get an image to be 100% of the screen width, without creating a sideways scroll bar in lower screen resolution displays? Cheers
How do I get an image to be 100% of the screen width, without creating a sideways scroll bar in lower screen resolution displays? Cheers
FathomJH Established Member โ 15 โ Impact 22 Mar 1, 2009 #2 One way is to create an image longer than the screen width, say 1000px. In order to stop the scrolling bar that would appear on lower resolution settings, you can use css to set the background to fixed: body { background: url(bg.png) fixed; }
One way is to create an image longer than the screen width, say 1000px. In order to stop the scrolling bar that would appear on lower resolution settings, you can use css to set the background to fixed: body { background: url(bg.png) fixed; }