Dynadot โ€” .com Transfer

Image 100% of width

SpaceshipSpaceship
Watch
Impact
0
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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;
}
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back