Pontus Lundh
Pontus Lundh

Reputation: 7

Css background Wont work?

I have a question.

I am currently building a "blog" website. Not that it matters but.. I am trying to set my background to be a specific image that i have. And it used to work! Until recently and I just don't know why it wont.

It works when i am on my computer, everything works fine. But i am using 000Webhost as the hoster for the website. So if u go to "http://pontuslundhblogg.uphero.com/"

You might see that the website is completely white. Cause the picture wont load for the background. In my css sheet, i am using:
body {
background-image: url("bakgrund.jpg");

And yes, i did name the picture bakgrund.jpg and uploaded it to 000webhost. Its the exact same name etc. I wondering.. Could two different css stylesheets make so it gets weird or something? Cause I added a second css style sheet to be able to have a drop-down menu in a different sheet, and i added the drop-menu. Around that time it started messing with me..

Is it me doing something wrong. Or is it 000Webhost?
(Might add that none of my pictures is working now, i can also contribute with more code if needed!)

Upvotes: 0

Views: 187

Answers (1)

TamarG
TamarG

Reputation: 3570

If you go to pontuslundhblogg.uphero.com/bakgrund.jpg you get a message

"The image pontuslundhblogg.uphero.com/bakgrund.jpg cannot be displayed because it contains errors".

If you go to pontuslundhblogg.uphero.com/bakgrund1.jpg you get 404 page, which means that the first path (bakgrund.jpg) is correct - but the image itself isn't good.

Try to upload it again or contact the hosting service.

If you use FTP maybe you need to change something in your FTP program settings - maybe change from ASCII to Binary transfer. http://www.inmotionhosting.com/support/website/file-management/corrupt-file-ftp-transfer

Upvotes: 3

Related Questions