Roy Milder
Roy Milder

Reputation: 906

css can't load images in other directory

Strange thing. I moved my site from develop to production and now none of the images I load in my CSS file are working.

Directory structure:

root
root - css
root - icons

Example code from CSS:

.icon_edit {
    display: block;
    background:url(../icons/sharp_reply.png) center right no-repeat;
    width: 16px;
    height: 16px;
}

The code above does work on my staging server. It also works if I move the images to the CSS folder and I change:

background:url(../icons/sharp_reply.png)

to

background:url(sharp_reply.png)

So it probably has something to do with the webserver (apache) config or some permission settings? I just can't figure out which.

Upvotes: 1

Views: 799

Answers (1)

Lyn Headley
Lyn Headley

Reputation: 11608

Rename your directory from 'images' to 'icons'

Upvotes: 1

Related Questions