HTML & CSS
pages not live yet, still only saved on my flash drive. The problem I am having is that my logo img doesn't show up when viewed with firefox. I have used chrome, multiple versions of ie and fireofx is the only one that i'm having problems with. I have already tried simply moving the files to my hard drive with no success. any help?? here is code so far;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<title>University Neuromuscular Massage - Serving North Charlotte, Concord and surrounding area</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
<h2 id="tagline"><img src="F:/new website/pics/logo_final.jpg" width="457.5" height="312.75" alt="University Neuromuscular Massage"/><br>Restoring Balance, One Massage At A Time</h2>
<li><a HREF="contact.html">Contact Us</a></li>
<li><a HREF="therapists.html">Meet Our Therapists</a></li>
You need to prepend your filepath with file:///, like so: src="file:///F:/new website/pics/logo_final.jpg"
You should note, however, that this is only the way it's done when you're viewing your site locally, by opening your html document with Firefox. When your site is served by a webserver, you use paths that are absolute from the website's document root or relative to the current document's folder.
why??? apparently not needed in any other browser, so what special about ff that it needs this?
If you want to get technical, and if I understand it correctly, file:// is actually the scheme required by the RFC specification. Some browsers allow leaving it out, Firefox doesn't.
This topic is now closed. New replies are no longer allowed.