The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> href works locally but not on website
Columbo
post Jan 6 2024, 09:15 PM
Post #1





Group: Members
Posts: 2
Joined: 6-January 24
Member No.: 29,111



I put href in topic title but meant to put <img src=.
I am putting together a website using html and css and I am using Brackets for the editor. I have a navbar (css) with 4 links on it and they are all working properly on the website. One of those links in the navbar points to another page (page 2) on the site. That other page contains a link to an image that is in a folder called dino_images. The link code that I am using is:
CODE

<div class="picture">
     <img src="dino_images/anomalocaris.jpg" alt="anomalocaris">      
  </div>


When I run the code locally in Brackets, it runs fine and displays the images properly. When I upload the files to the website the images do not display and it shows a broken link. The structure on the website is identical to the folder on my hard disk that Brackets is using to run the code locally. The dino_images folder is on the website and the image does exist in the dino_images folder with the correct spelling. I've been playing around with this thing for a whole day and I can't figure out why it running properly locally but is indicating a broken link on the website. The path is correct.

Any suggestions appreciated.

This post has been edited by Columbo: Jan 6 2024, 09:25 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 15th June 2024 - 07:58 AM