Skip navigation
ljohnston46
Currently Being Moderated

DW Cs6: will my images not show up when previewing in browser

Apr 11, 2013 4:54 PM

Tags: #image #cs6 #dw

DWcs6: will my images not show up when previewing in browser unless my site is connected to a server? currently I am working remotely not connected to the server. I can see my images in live view but not when previewed in browser.

 
Replies
  • Currently Being Moderated
    Apr 11, 2013 5:17 PM   in reply to ljohnston46

    If images don't appear correctly in browsers, it's likely a bad path.  This typically happens when you start working on a project without first Defining a Local Site Folder in DW. Without this first step, DW cannot properly manage assets and links for you.

     

    Wrong path:

    file:///user/desktop/folder/filename.jpg

     

    Correct path:

    images/filename.jpg

     

    Or possibly you used the wrong type of image file.  Images need to be optimized & Saved for Web as .jpg, .png or .gif files.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2013 5:41 PM   in reply to ljohnston46

    Are these pages saved as .html pages -- not .php or .asp?

    Are you working with clean code?

     

    Code Validation Tools

    ------------------------------------

    CSS - http://jigsaw.w3.org/css-validator/

    HTML - http://validator.w3.org/

     

     

    Can you show us your markup?

     

     

    Nancy O.

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Apr 11, 2013 9:41 PM   in reply to ljohnston46

    When you try to preview in browser, what is the URL you're seeing in the address bar of your browser? Is it referring to your local copy (file://) or a remote server copy (http://)?

     

    Do you have a 'testing server' defined in your site within DW? If so, what is the testing server path you've given there?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2013 9:48 AM   in reply to ljohnston46

    The URl in preview is c:/file//    

    Did you define a Local Site Folder in DW before you started this project?  Without this critical first step, none of your link paths will be correctly pointing to your site folder.

     

    Go to Site > New Site and tell DW where to find files on your local hard drive.  See Screenshot.

     

    DW-CS6-LocalSiteFolderDef.jpg

     

    Nancy O.

     
    |
    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