6 Replies Latest reply on Jun 8, 2006 6:47 AM by Newsgroup_User

    Images and CSS not displaying in Design View

    p_lambrecht
      I switched from MX to DW 8 and now have this problem in preview/design view:

      Styles do no display at all. I am linking to the CSS page like this:
      <LINK REL="stylesheet" type="text/css" href="/includes/main.css">

      Images do not display when linking via the root directory. I am linking as follows:
      <img src="/images/a1_banner.gif">

      If I remove the initial "/" (or use "../" when appropriate), it displays correctly.

      Any thoughts..?
        • 1. Re: Images and CSS not displaying in preview
          Level 7
          Do you have Preview with temp files enabled in PREFERENCES | Preview with
          browser?

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.dreamweavermx-templates.com - Template Triage!
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
          ==================


          "p_lambrecht" <webforumsuser@macromedia.com> wrote in message
          news:e66tvj$nv5$1@forums.macromedia.com...
          >I switched from MX to DW 8 and now have this problem in preview/design
          >view:
          >
          > Styles do no display at all. I am linking to the CSS page like this:
          > <LINK REL="stylesheet" type="text/css" href="/includes/main.css">
          >
          > Images do not display when linking via the root directory. I am linking
          > as
          > follows:
          > <img src="/images/a1_banner.gif">
          >
          > If I remove the initial "/" (or use "../" when appropriate), it displays
          > correctly.
          >
          > Any thoughts..?
          >


          • 2. Re: Images and CSS not displaying in preview
            p_lambrecht Level 1
            Yes. That is set up.

            I should clarify... I am talking about Design and Split views.

            Images do not display in those frames using the above-mentioned scenarios.
            • 3. Re: Images and CSS not displaying in preview
              Level 7
              They will if your site is properly defined.

              Where is your local site's root folder? What is the path to it?

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.dreamweavermx-templates.com - Template Triage!
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
              ==================


              "p_lambrecht" <webforumsuser@macromedia.com> wrote in message
              news:e66vi4$q1i$1@forums.macromedia.com...
              > Yes. That is set up.
              >
              > I should clarify... I am talking about Design and Split views.
              >
              > Images do not display in those frames using the above-mentioned scenarios.


              • 4. Re: Images and CSS not displaying in preview
                p_lambrecht Level 1
                It appears that everythig is properly defined.... The path to my root directory is set in the Site Manager correctly

                I have the main directory with two folders, "images" and "Includes".

                When I have an web page in the root directory, <img src="/images/image.gif"> does not display the image, but <img src="images/image.gif"> does.

                When I am refering to an includes file, using <!--#include virtual="/includes/header.asp"--> displays the content of the include fine, but the CSS attributes will not show...

                Once again, <LINK REL="stylesheet" type="text/css" href="/includes/main.css"> does not work but <LINK REL="stylesheet" type="text/css" href="/includes/main.css"> does.

                I have only had this problem since upgrading to DW8.
                • 5. Re: Images and CSS not displaying in preview
                  Level 7
                  > When I have an web page in the root directory, <img
                  > src="/images/image.gif">
                  > does not display the image, but <img src="images/image.gif"> does.

                  Enable Preview with temp files in PREFERENCES | Preview in Browser.

                  > the CSS attributes will not show...

                  If the rules are embedded in the include file, this is correct and proper -
                  are they?

                  > I have only had this problem since upgrading to DW8.

                  It's a preferences thing.

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.dreamweavermx-templates.com - Template Triage!
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                  ==================


                  "p_lambrecht" <webforumsuser@macromedia.com> wrote in message
                  news:e698t9$omj$1@forums.macromedia.com...
                  > It appears that everythig is properly defined.... The path to my root
                  > directory
                  > is set in the Site Manager correctly
                  >
                  > I have the main directory with two folders, "images" and "Includes".
                  >
                  > When I have an web page in the root directory, <img
                  > src="/images/image.gif">
                  > does not display the image, but <img src="images/image.gif"> does.
                  >
                  > When I am refering to an includes file, using <!--#include
                  > virtual="/includes/header.asp"--> displays the content of the include
                  > fine, but
                  > the CSS attributes will not show...
                  >
                  > Once again, <LINK REL="stylesheet" type="text/css"
                  > href="/includes/main.css">
                  > does not work but <LINK REL="stylesheet" type="text/css"
                  > href="/includes/main.css"> does.
                  >
                  > I have only had this problem since upgrading to DW8.
                  >


                  • 6. Re: Images and CSS not displaying in Design View
                    p_lambrecht Level 1
                    Alright, here is what I had set up wrong.

                    I had entered the web site URL where it says "This address is used for site relative links, and for the the Link Checker to detect HTTP links that refer to your own site."

                    I removed this URL and everything is now displaying as it shoudl.