Ask coding questions

← Back to all posts
CatPaw11 (1)

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

tristanbeedell (46)
<img src="" 
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: -1;

My solution (:

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.