SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Location
    A small village called Aunsby,Lincolnshire,U K
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting Images on Web Page

    Hi

    I am reaching desperation point. I cannot get my images to display in I E (or any other). I would say that I did not have any problems previously.
    I have tried everything I know but all I get is the red cross nightmare,I presume that this must be something to do with the image file path, but I think ?? this is O K.

    <img src="documents/websters/bowl/images/dscf0534.jpg" height="300"width="250"
    alt="Bowl"/>

    Forward/ Back\ makes no difference - Case differences make no difference.

    Very Grateful for any help Regards Monty

  2. #2
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    montagueward, well we cannot help you much as we don't know your website address so we have nothing to compare the URL to. Have you checked the image path is correct, if not you need to ensure you have the right URL to the image otherwise it won't work. Also you should not specify the width and height as you have done, it won't affect the image loading but you should be using CSS rather than deprecated methods of styling content.

  3. #3
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    try
    <img src="images/dscf0534.jpg" height="300"width="250"
    alt="Bowl"/>
    then create a folder called images in your web space, and remember to upload the image file as well (images are not embedded in an html file, they are linked to, and have to be uploaded as well as the hmtl page itself)

  4. #4
    SitePoint Enthusiast
    Join Date
    Sep 2009
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, Monty,
    I know the desparation all too well. Firstly, let me tell you that I am just starting out, learning from books, and my own mistakes!

    When I say just starting out, believe me, it is just weeks!

    The only thing I can tell you is that my image folder was not in the same folder as my web page, and the darn page or IE or some elf would not look in the place where it was.

    When I made a new folder and put both the images and the web page into it, the images magically appeared....

    I hope this helps.

    Jeannie

    PS: I am working my way thru Build Your Own Website the Right Way (because I had a template I needed to modify and couldn't understand all the code) and I have discovered that CSS is a lot of fun. Really.

  5. #5
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AlexDawson View Post
    Also you should not specify the width and height as you have done, it won't affect the image loading but you should be using CSS rather than deprecated methods of styling content.
    I didn't know that width and height we're deprecated, in fact I thought it was a good idea to include these 2 attributes so the page reserves the necessary space while it loads, avoiding unsightly realignments.

    Though, I will say the alt="Bowl" is not very descriptive.

  6. #6
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Sorry, yep your right ben, IMG is one of the few where width and height can be declared inline (without it being deprecated in HTML 4.01).

  7. #7
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Location
    A small village called Aunsby,Lincolnshire,U K
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Alex Dawson and Dr John
    Perhaps I misled you. I have not uploaded to the Web yet, I at this stage, just want to view my 'index.html' file on my PC. As far as I know the image file path is correct. It is a mystery to me as though a beginner, I have previously built a web site OK.
    Incidentally, perhaps someone should tell the rest of the world that my size specification is deprecated.

    Hi BPartch
    Just to let you know that my alt="Bowl" is merely a test piece.

    Hi Jeannie
    Many thanks for your information which sounds promising. I am using the same book as you and agree that that CSS is fascinating. I found that reference to image manipulation is a bit sketchy.

    Best Wishes Monty

  8. #8
    SitePoint Member
    Join Date
    Sep 2009
    Location
    Los Angeles
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your code looks correct, but make sure your path is correct.... this is a very common problem when images are not displaying.

    good luck
    Regards,
    Zizo Ahmed


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
  •