Ask coding questions

← Back to all posts
backround
CatPaw11 (1)

how do i get the background image to scale with devices that are bigger than the image

Comments
hotnewtop
tristanbeedell (46)
<body>
<img src="https://images2.alphacoders.com/661/thumb-1920-661667.png" 
style="
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: -1;
	top:0;"
>
...

My solution (:

https://repl.it/@tristanbeedell/Website-fork

tristanbeedell (46)

Not sure if this is an issue with the site, repl or my phone, but viewing it on my iPhone 5s lead the whole screen to turn into bright coloured bars and then to restart. Quite frightening; not sure what happened.

John_WardWard (364)

That is a decent bit of code that snake. Very nice project. Sadly, I can't answer your question though.