Results 1 to 5 of 5

Thread: Reasons why a picture won't show up in a HTML file

  1. #1
    Join Date
    Jul 2008
    Posts
    20

    Default Reasons why a picture won't show up in a HTML file

    Hi, this is really embarrassing but a picture refuses to show up in one of my HTML files. It won't even show the Alt tag. It basically looks like this: http://www.rawinkorpz.com/gallery/dizzee-rascal4.htm when it should look like this http://www.rawinkorpz.com/gallery/dizzee-rascal3.htm - I preview the HTML file on my local drive and it works fine there. Originally I thought it was a bad upload, but I've deleted it and uploaded it up again about 5 times already and still same problem. The picture in question that refuses to load on the page is at http://www.rawinkorpz.com/gallery/im...ee-rascal4.gif

    I looked at the source code once I uploaded the HTML file and the paragraph that includes the picture has been deleted for some reason, despite the fact I saved the HTML file with the picture there. It seems like it would be from a bad upload, but I uploaded it 5 times already with the same result. Any other reason for this?

    Basically this simple line of code has been deleted during the upload:

    Code:
    <P align="center"><img src="img/dizzee-rascal4.gif" alt="Dizzee Rascal" width="300" height="250"></P>
    Last edited by TVizion; 07-29-2008 at 06:47 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    Somewhere where I don't know where I am
    Posts
    2,154

    Default

    The pictures loads fine for me. Trying clearing your browsers cache
    Sign Up Now!
    Unlimited Storage, Unlimited Transfer, Host Unlimited domain names, 1 Free Domain Name
    BlueHost Features | BlueHost Help Desk | Become a BlueHost Affiliate | BlueHost CEO Blog
    (888) 401-4678 | Create a support ticket

  3. #3

    Default

    yeah I don't have a problem neither, may be you are using a proxy?

  4. #4
    Join Date
    Jul 2008
    Posts
    20

    Default

    I fixed the problem by instead of linking it to the local host ie/ "picture.gif" I wrote the absolute url down ie/ http://www.domain.com/picture.gif which seems to have done the trick, but still, writing it locally still should have worked.

  5. #5
    Join Date
    Feb 2006
    Location
    North of Boston, MA
    Posts
    1,657

    Default

    It sounds like you didn't need to do that if others saw the image with no issue.

    One potential way to resolve conflicts is to reference a base URL in your <HEAD> section:

    HTML Code:
    <head>
      <base href="http://www.nameofyoursite.com/" />
    </head>
    Then you can have all your images saves in one folder, like img, and then reference them as you organize them:

    HTML Code:
    <img href="img/subfolder/image_x.jpg">
    Note that this will also work as a reference to all files as well.
    redsox9 - Go Red Sox!!! 2004 and 2007 World Series Champions!
    Visit FenwayFanatics.com, home to Boston Red Sox baseball fans everywhere... now on Facebook and Twitter!

Posting Permissions

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