Results 1 to 7 of 7
  1. #1


    Member Since
    Nov 30, 2005
    Posts
    14
    Building a Web Page
    This is probably a dumb question, but I just can't figure this out. I'm coding a web site for my Computer Science course and the images I've added never load when I preview the .html file. I have the right html instruction and my source is just the folder and jpg file on my computer. Can anyone help me out with this?

  2. #2

    cwa107's Avatar
    Member Since
    Dec 20, 2006
    Location
    Lake Mary, Florida
    Posts
    26,899
    Specs:
    15" MBP, Core i7/2GHz, 8GB RAM, 480GB Crucial M500 SSD
    I've seen this happen before when hand-coding HTML. In my case, I didn't match the case correctly of the image file names. Some web servers are case-sensitive, so make sure your stated paths match the actual case of the files. Just a guess....
    Liquid and computers don't mix. It might seem simple, but we see an incredible amount of people post here about spills. Keep drinks and other liquids away from your expensive electronics!

    https://youtu.be/KHZ8ek-6ccc

  3. #3

    D3v1L80Y's Avatar
    Member Since
    Feb 02, 2004
    Location
    PA
    Posts
    12,456
    Specs:
    MacBook
    Quote Originally Posted by ND_all_the_way View Post
    This is probably a dumb question, but I just can't figure this out. I'm coding a web site for my Computer Science course and the images I've added never load when I preview the .html file. I have the right html instruction and my source is just the folder and jpg file on my computer. Can anyone help me out with this?
    What browser are you using to preview your page?

    Is the index.html file in the same location as the images?

    Can you attach your index.html file as a .txt to a post so we can get a better idea of how you have it set up?
    __________________________________________________
    Posting and YOU|Forum Community Guidelines|The Apple Product Cycle|Forum Courtesy

    mac: a waterproof raincoat made of rubberized fabric
    MAC: a data communication protocol sub-layer, also known as the Media Access Control
    Mac: a brand name which covers several lines of personal computers designed, developed, and marketed by Apple Inc.


  4. #4


    Member Since
    Dec 03, 2007
    Posts
    13
    Sometimes when I apply css background-image I have real troubles getting them to show up while testing on my hardrive.

    Although, I suspect your file path is fudged.

  5. #5

    jdgti's Avatar
    Member Since
    Mar 14, 2005
    Location
    Atlanta, GA
    Posts
    443
    Specs:
    17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
    Copy and paste some of the code here. We'll help you.

  6. #6
    Trying prepending the path with "file:"
    MacTips - Mac Tips and Tricks

  7. #7

    giulio's Avatar
    Member Since
    Mar 19, 2007
    Location
    NY USA
    Posts
    1,813
    Specs:
    iMac 5.1 | iMac 7.1 | iPod Touch | iPod Nano
    use relative paths, and make sure the case is correct everywhere. something like:

    src="../media/pHoTo.JPEG"
    schweb This has to be one of the best threads ever in MF history...
    Cherokee This gets my vote for most innovative thread on Mac-Forums... ever.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. static web page on Web browser
    By milankamilya in forum Switcher Hangout
    Replies: 1
    Last Post: 09-20-2013, 05:50 AM
  2. Best web building program for Mac
    By PeterSG in forum Web Design and Hosting
    Replies: 8
    Last Post: 12-27-2012, 05:04 PM
  3. Please help me debug page (just load a web page in windows IE)
    By giulio in forum Web Design and Hosting
    Replies: 6
    Last Post: 07-01-2007, 03:44 PM
  4. Web programming / advanced site building?
    By MrPencil in forum Web Design and Hosting
    Replies: 4
    Last Post: 10-21-2005, 10:23 AM

Posting Permissions

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