View Full Version : Image Link In .css File
odbinfo
05-08-2011, 03:04 PM
Hi (again).
I have the following link in my css file.
background-image: url('../image-files/1050_250.gif');
It works correctly on my current host but during testing here I cannot get any images referred to in my .css file to show up when the page is opened.
My css file is in: main_folder/support-files
and my image files are in: main_folder/image-files
I have tried everything to get it to work but it just won't.
Is there something in the bigger picture that I am missing?
Basil
05-08-2011, 06:35 PM
The path is correct for the situation you have described, which means the image isn't in the folder.
Or you might have hotlink protection enabled and it's blocking everything.
Try to browse to the image directly in your browser, or just open the /image-files/ directory in your browser for a list of files in the folder if you don't have indexing turned off. This will give you some perspective on what's really going on.
If you can't figure it out, link to your website.
odbinfo
05-11-2011, 10:56 AM
Thanks Basil.
Is this link adequate: TestSite (http://www.online-data-backup-info.net/ss100794/drivehq.html)
Thanks for your support.
Basil
05-12-2011, 02:53 PM
Your path, at least for that file, is correct. Some of your other ones are not, because they're case sensitive and it's lowercase in the css file and the file names are not.
On the other hand, your "header" class is on a <td> tag that isn't actually inside of a table, so I honestly don't know how the browser will decide to render that. Firebug doesn't see the td at all in the html tree.
odbinfo
05-18-2011, 10:43 AM
Thanks Basil.
I have corrected the file names.
I am not able to understand how to/where to fix the header <td> situation.
Is it in the css(I presume)
As I say, these files work ok on my present site.
Could you just point me to where I should look to fix this.
(I am not blaming anyone as I probably damaged the file, but I originally purchased the css/html setup.)
Sorry I am taking so long to reply.
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.