开发者

CSS Doesn't load images?

开发者 https://www.devze.com 2023-02-14 04:51 出处:网络
So i have my website, www.alphenweer.nl, and that uses some images in the template. Now the images are on the right url, they work fine, but when i load my website the images won\'t load? 开发者_Go百科

So i have my website, www.alphenweer.nl, and that uses some images in the template. Now the images are on the right url, they work fine, but when i load my website the images won't load? 开发者_Go百科You can try it here. Please help, why won't the images load?

Greetings


Ok, so I gave a look at your css :

#header {
   border-bottom: 1px solid black;
    width: 985px;
    background-image: url('http://images.alphenweer.nl/i/header-winter.png');
    text-align: center;
    height: 250px;
}

Even when I copy the url in my browser, I got a 404, so the image isn't on your webserver.


Ahh no! I found my own answer. I needed to reupload the css files, i forgot =)!

God, i'll understand when you guys are gonna thumb down! =)


if other images are loading and some are not loading on same location then it is due to hyphen that you have in your image name.

Hyphen in names gives problem in many places. Not only in CSS but when access database and table tables, directories and file names etc. So, try to avoid hyphen instead use underscore.

But I do not know why hyphen give problem. If anyone know that, pleas share your knowledge.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号