Skip navigation
hj18345
Currently Being Moderated

Cannot view image in browser

Apr 4, 2013 2:47 PM

I have dragged my image into my root folder and then press insert image. The image appears in dreamweaver, but when i try to view in browser a box with a red x appears. I have the image labeled as fid_920-210. I know it's something simple that I am doing wrong, but what?  Thank you for your help.

 
Replies
  • Currently Being Moderated
    Apr 4, 2013 3:01 PM   in reply to hj18345

    Let's see your code.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 3:04 PM   in reply to hj18345

    Is your image a .jpg, .png or .gif that has been optimized for the web as RGB not CMYK?

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 3:26 PM   in reply to hj18345

    Root relative links will not work in preview unless you have enabled PREFERENCES > Preview in Browser > Use temporary files. Is there a reason why you are using a root relative link for that image rather than the more usual document relative link?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 3:43 PM   in reply to hj18345

    Which DW are you using? In CS6, there is an option on the Insert image panel that will allow you to select root relative or document relative. If you set that option to root relative then that's what you got.

     

    You can fix what you have very easily by just changing this -

     

    <img src="/images

     

    to this -

     

    <img src="images

     

    but I thought you said you dragged the image into the root folder? This link implies that you dragged it into the images folder.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 5, 2013 5:31 AM   in reply to hj18345

    then dragged that image to an image file located in my root folder.

    You mean you dragged it to an "image" folder located in the root folder I assume.... That is consistent with the code you showed.

     

    Instead up selecting site root should i select document?

     

    Yes. For normal operation, always select 'document'. You would only select "root" if you had a reason to do so, and usually those don't arise unless you are using server-side includes.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points