I have tried this code:
body { background-image: url('https://imgur.com/9Ns6RVS.png'); background-repeat: no-repeat; background-size: cover; }
Didn't work. Please help, thanks!
I have tried this code:
body { background-image: url('https://imgur.com/9Ns6RVS.png'); background-repeat: no-repeat; background-size: cover; }
Didn't work. Please help, thanks!
9 Comments
raltsm4k@kbin.social · 0 pts · 3y
Figured it out, you need to target #middle instead of body for the background to appear :)
minnieo@kbin.social · 0 pts · 3y
okay, sooo be nice cause i don't know how to code at all lol, so idk if i did it right, but, when i did this:
middle { background-image: url('https://imgur.com/9Ns6RVS.png'); background-repeat: no-repeat; background-size: cover; }it still didnt work :(
raltsm4k@kbin.social · 0 pts · 3y
No worries, you need to include the pound sign before middle. So
#middle { background-image: url('https://imgur.com/9Ns6RVS.png'); background-repeat: no-repeat; background-size: cover; }should work.
minnieo@kbin.social · 0 pts · 3y
that didn't work either :(
raltsm4k@kbin.social · 1 pts · 3y
My bad, you need to remove the quotes from around the URL, it doesn't like those for some reason. So it'll be
url(https://imgur.com/9Ns6RVS.png)minnieo@kbin.social · 0 pts · 3y
OMFG THANK YOU IM SO DUMB LMAO. thank you this worked!!
raltsm4k@kbin.social · 0 pts · 3y
np!
minnieo@kbin.social · 0 pts · 3y
another question, is there any place for css themes for kbin around here? i certainly couldn't write it myself, and i can't find documentation on it. i understand it may not be flesh out yet, but shot in the dark