Reputation: 13
Basically I am trying to link to 2 local files that are webpages that are uploaded on the same host as the webpage being browsed. It's supposed to happen by clicking on one of these two images - Imgur. What am I doing wrong? I cannot click on the images to open the file in a new tab.
Here are my folders - Imgur
This is the code -
<div class="wrapper">
<a href="MyIndia/index.html" target="_blank"><img src="images/slide3/MyIndia.png" data-stellar-ratio="1.8" data-stellar-vertical-offset="-200" alt=""></a>
</div>
<div class="wrapper">
<a href="PizzaCat/index.html" target="_blank"><img src="images/slide3/PizzaCat.png" data-stellar-ratio="1.8" data-stellar-vertical-offset="-35" alt=""></a>
</div>
Upvotes: 1
Views: 453
Reputation: 20835
This is the code that should work:
<div class="wrapper">
<a href="PizzaCat/index.html" target="_blank"><img src="images/slide3/MyIndia.png" data-stellar-ratio="1.8" data-stellar-vertical-offset="-200" alt=""></a>
</div>
...
And be sure of these details:
Upvotes: 1
Reputation: 1
Pass the path as shown below:
<a href="C:\Users\Toni Moni\Downloads\fol.html" target="_blank"><img src="images/slide3/PizzaCat.png" data-stellar-ratio="1.8" data-stellar-vertical-offset="-35" alt=""></a>
Upvotes: 0
Reputation: 4591
from your code posted, most likely your href's have a wrong relative path
run your page, and assuming you're using a modern browser, press F12 an examine the link elements to see if the paths make any sense based on your site root.
Upvotes: 0