html – How to get a background image to appear on Neocities?


I am trying to get my background image on my Neocities website to appear. I believe it’s an issue with the pathing but I’m not quite sure.

I’ve tried these

body {
    background-image: url(https://nymstryx.neocities.org/images/bg-pattern.png);
    background-color: #ffeacf;
    background-repeat: repeat;
}

body {
    background-image: url(/images/bg-pattern.png);
    background-color: #ffeacf;
    background-repeat: repeat;
}   

body {
    background-image: url(images/bg-pattern.png);
    background-color: #ffeacf;
    background-repeat: repeat;
}

When I did the CSS in my own editor I merely used the actual file path and it worked fine, but maybe because I’m not familiar with Neocities I don’t understand what the file path would need to be for me to get the image to appear. When I inspect the page it always seems to force route the image url to this

url.

I don’t know why it does this as this an error page and is not the file path I put in the CSS. The image is in its own images folder and not in the styles folder.

Here is what the page looks like right

now

and this is what I want it’s suppose to look like like



Source link

Leave a Comment