SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: picture in ff

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow picture in ff

    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;

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <title>University Neuromuscular Massage - Serving North Charlotte, Concord and surrounding area</title>
      <meta http-equiv="Content-Type"
        content="text/html; charset=utf-8"/>
      <link href="style.css" rel="stylesheet" type="text/css"/>
      </head>
      <body>
        <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>
       
          <ul id="navigation">
            <li><a HREF="index.html">Home</a></li>
            <li><a HREF="services.html">Services</a></li>
            <li><a HREF="prices.html">Prices</a></li>
            <li><a HREF="contact.html">Contact Us</a></li>
            <li><a HREF="therapists.html">Meet Our Therapists</a></li>
          </ul>
    
      </body>
    </html>

  2. #2
    SitePoint Enthusiast Wuiqed's Avatar
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why??? apparently not needed in any other browser, so what special about ff that it needs this?

  4. #4
    SitePoint Enthusiast Wuiqed's Avatar
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dtp134 View Post
    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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •