Question:
JPEG won't work in Firefox html file, but does in IE, why?
Space Invader101
2010-06-16 08:08:02 UTC
I'm trying to learn HTML/CSS, save HTML files on my hard and test them on different browsers.

Lesbian kiss
Lesbian kiss
(Note: ... is /00113.jpg" YA included the ..., not me)

It's exactly the same JPG file. Either will work in IE, but in firefox, I can't view it if it's on the C drive. I just get "Lesbian Kiss" text and no picture.

Any way to solve this problem?
Four answers:
Mike S
2010-06-16 08:44:10 UTC
It is src attribute referencing local drive. While IE will accept file using DOS naming ,firefox expect to see standard URL, so it should be:

ant
2010-06-16 08:34:04 UTC
Going by your alt tag, it looks like you have two for the same file....that's not necessary, you only need to reference it once. But if those are two different files, ignore this part. :)



Unless your jpeg is in the C folder and not in any another sub folder, this won't work. Place both the html file and the jpeg file in the same folder and then just reference it as This is the easiest way.



Or you could make an absolute path to the image, src="c:\folder1\folder2\folder3\pic1jpg" But should you then upload this to the web, you will need to change the path to reflect where it is on the host, and there is no easy way to figure that out.



It's easiest to keep them in the same folder, or in an assets folder in your root folder. I do that and keep all my non-html files in the assets folder. That way when I upload to my host, there are no issues(knock on wood.)



Anthony

www.anthonylaurence.net
?
2016-10-25 14:16:16 UTC
nicely... which will be type of difficult. try encrypting your source code. one subject youc an do is make it the history image of a table it can make it one step harder counting on their browser to scouse borrow it. also bear in mind in XHTML theres an section between the ' or " and the /> If i imagine of a few thing i will edit it in.
anonymous
2010-06-16 08:20:12 UTC
hope this helps


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...