Log in

View Full Version : href image trouble



djg5090
12-24-2010, 06:20 PM
Im currently having issues with linking images with PDF documents. In the body of the website i have the following:

<a href="Documents/Terms and Conditions Back.pdf"><img src="images/descriptionservices.png" /></a><a href="Documents/Zetta_Blaze Terms and Conditions.pdf"><img src="images/termsandconditions.png" /></a>

Two images, side-by-side, that link to two PDF documents.

When i run the site in firefox and explorer, it initially works just fine. When i navigate to a different page in the site and come back, the images are staggered and no longer link to the PDF document. how do i get this to keep the link and format?

any help i would appreciate it, thank you!

Schmoopy
12-24-2010, 06:34 PM
Can you post a link to the site where you've got this code running?

I want to point out that you shouldn't have spaces in your file names - "Terms and Conditions Back.pdf" should probably be changed to "Terms_and_Conditions_Back.pdf" to avoid problems in certain browsers.

It seems odd that it would work on the initial page load and then stop working after looking at another page, is there anything else loaded on that page that would affect the CSS?

djg5090
12-24-2010, 06:50 PM
I dont have the site actually up and running yet. I've been using PHP designer and running the code from that program in firefox and IE.
i figured out the issue, and im sorry to waste your time..stupid mistake..

in PHP designer, i was editing the code and running it to figure out the issue, i didnt notice that i was editing ~services.php not services.php
When i edited and saved ~services.php, it didnt update the site. I must have closed out PHP designer without saving and as back-up it save my services page as ~services.php