: Using dash in folder names and linking for image I have image folders where I use dashes in the name for example: "images/01-12-2011/example.jpg" When I insert this image into my html. Internet
I have image folders where I use dashes in the name for example: "images/01-12-2011/example.jpg"
When I insert this image into my html. Internet explorer(9) shows the image but Firefox and chrome doesn't show it. When I type it to the url: (blabla.com/images/01-12-2011/example.jpg) then i can see the image.
What could be the reason and the solution?
thanks in advance
More posts by @Gloria169
1 Comments
Sorted by latest first Latest Oldest Best
It's most likely that the path to your image is broken, and the browser that's showing the image correctly has the file cached.
Consider the following HTML:
<img src="images/01-12-2011/example.jpg" />
<img src="/images/01-12-2011/example.jpg" />
In the first line of code, the img tag tells the browser to look for the image in a sub-folder based off the current URL — this is referred to as a relative link.
In the second line of code, the img tag instructs the browser to start from the root directory of your site when looking for the image — this is referred to as an absolute link.
If you're seeing the images in one browser, but not others (and you're viewing them using the same URL) your primary browser may just have the files cached.
Without seeing a code sample of the page, it's difficult to determine what else might be the problem.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.