CSS Problem: Background images are showing

Discussion in 'CSS' started by YIAM, Mar 1, 2007.

  1. #1
    Sorry for the wrong title: It should be CSS Problem: Background images are NOT showing

    Just learing CSS and working on my new site http://www.wcc-2007.info/

    I am using a free template. It was working fine on pc but when uploaded to server, background images are disapeared and not showing.

    Please guide me.
     
    YIAM, Mar 1, 2007 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    Accessing one of the images directly, http://www.wcc-2007.info/images/icon.jpg, you get errors instead of the image.

    Did you upload the images folder, it looks like either you didn't or the web server can't access it.
     
    tolra, Mar 1, 2007 IP
  3. libertygone

    libertygone Active Member

    Messages:
    2,625
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    90
    #3
    looks like the image isn't even on the server.
     
    libertygone, Mar 1, 2007 IP
  4. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #4
    YIAM, Mar 1, 2007 IP
  5. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #5
    Ok, the images are there but if you click any of them you get an HTML page along with some PHP errors rather than the image.

    My guess is you have something configured in .htaccess to process all requests through a PHP script file rather than serving up the image directly.
     
    tolra, Mar 1, 2007 IP
  6. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #6
    YIAM, Mar 1, 2007 IP
  7. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #7
    If you remove/rename .htaccess you should be able to then view the images, that being the case then it's just a question of rewriting the rules in .htaccess to not affect images.

    You'd need to post the contents of .htaccess for anyone to be able to help with that.
     
    tolra, Mar 1, 2007 IP
    YIAM likes this.
  8. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #8
    Thanks Toltra for your help. I've fixed it. Error was in my .htaccess file.

    Greens added.
     
    YIAM, Mar 1, 2007 IP