Error in loading images

My account is named yashkum

I have been trying to load a image in the background through CSS but it’s not loaded !
It works fine in a local server ,but here it doesnt loads .

(please share the FULL error message you see)

I have wrote the name case sensitive , but then too the problem arouses!

(other information and details relevant to your question)

Please help

Site address :

Your image is visible to me. Try refreshing your browser cache.


See bro when I tried with css url() function for background image then it didnt worked but I inserted it with a but as you know this tag stretches the image as not desired

Try now I earlier used a html tag

It’s nothing wrong by server side. You may have entered the location incorrectly in css due to which it doesn’t worked.
Use inspect element to check such errors.

Try this with your background image or put it inside the background css:

background: url(“img url”);
background-repeat: no-repeat;
background-size: auto or cover;

1 Like

No pal I have checked many times even moved and tried image to the root location

I am on mobile right now so can’t take a look at the code but i am pretty sure it might be the problem of path of image or maybe caches issues.

Could it happen due to size? It’s around 500kb

No it won’t happen because of size but it might take some time to load depend on internet speed and server speed.

Have you tried this?

yeah but did’nt worked

the same issue as earlier

the same code runs very fine at localserver

the image strethces when i apply an img tag directly to HTML but loads the image , but even if i use your this piece of css or my css the error is the same

What do you see on Console when the issue occurs? (F12 to open it)

Use below code and it will work fine. Tested with your site using inspect element.
background: url(Img/trees2.jpg);
background-repeat: no-repeat;
background-size: cover;

This is just the same code that I’ve posted above.

Can you share us an screenshot of the exact problem? You know.

1 Like