Ajay Finian
Ajay Finian

Reputation: 61

Css image is not loading

enter image description here

I Gave the path as

{
    position:absolute;
    Background-image:url("..img/checked.gif") ;
    padding-left: 20px; 
    margin-left: .3em;
    vertical-align: middle;
    background-color: #FFEBE8;  
    border: solid 1px red;
    width: 170px;
}

Am i wrong?? Why my image is not loading?? It is saying Failed to load in firebug!! Please help me , With this..

Any links which explains giving path always welcome.

Upvotes: 0

Views: 42

Answers (3)

Jaroslav Kubacek
Jaroslav Kubacek

Reputation: 1447

in css is Background-image:url("..img/checked.gif"); but according to screen the path is ../images/checked.gif.

Upvotes: 0

Gregor Menih
Gregor Menih

Reputation: 5126

You have no folder called img.

Upvotes: 0

ABucin
ABucin

Reputation: 956

Your path should be "../images/checked.gif".

Fore more info, you can consult: http://css-tricks.com/quick-reminder-about-file-paths/

Upvotes: 1

Related Questions