6 Replies Latest reply on Dec 21, 2008 12:32 PM by Newsgroup_User

    DW: template screen size changes in Firefox site preview-why?

    the1god
      Hi all, I'm putting together a site using CSS (tenton tutorial online) in html; created my index.html, saved it as a template and from that created my other pages. But when I preview the site (either the index.html or the .dwt file) in Firefox, the various site pages flick from one size to another without any explanation!
      The homepage opens at the designed 900px width, but then the next linked page might be only around 800px in width. If I click the 'home' link - even on the homepage, it brings me to a smaller version of the homepage!
      This doesn't happen in Safari preview, can't find out about IE yet...

      Can anybody help? It's driving me nuts...

      Millions of thanks...
      Paul
        • 1. Re: template screen size changes in Firefox site preview-why?
          Level 7
          > Can anybody help?

          Probably now without seeing the actual pages in action. Please upload all
          problem pages along with all supporting files and post a link.

          --

          Walt


          "the1god" <webforumsuser@macromedia.com> wrote in message
          news:gilvg9$ofu$1@forums.macromedia.com...
          > Hi all, I'm putting together a site using CSS (tenton tutorial online) in
          > html;
          > created my index.html, saved it as a template and from that created my
          > other
          > pages. But when I preview the site (either the index.html or the .dwt
          > file) in
          > Firefox, the various site pages flick from one size to another without any
          > explanation!
          > The homepage opens at the designed 900px width, but then the next linked
          > page
          > might be only around 800px in width. If I click the 'home' link - even on
          > the
          > homepage, it brings me to a smaller version of the homepage!
          > This doesn't happen in Safari preview, can't find out about IE yet...
          >
          > Can anybody help? It's driving me nuts...
          >
          > Millions of thanks...
          > Paul
          >


          • 2. Re: template screen size changes in Firefox site preview-why?
            Level 7
            > the various site pages flick from one size to another without any
            > explanation!

            The explanation would no doubt be related to the code on the page. As Walt
            suggests, a page link is the way to allow us to diagnose your problem.


            --
            Murray --- ICQ 71997575
            Adobe Community Expert
            (If you *MUST* email me, don't LAUGH when you do so!)
            ==================
            http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
            http://www.dwfaq.com - DW FAQs, Tutorials & Resources
            ==================


            "the1god" <webforumsuser@macromedia.com> wrote in message
            news:gilvg9$ofu$1@forums.macromedia.com...
            > Hi all, I'm putting together a site using CSS (tenton tutorial online) in
            > html;
            > created my index.html, saved it as a template and from that created my
            > other
            > pages. But when I preview the site (either the index.html or the .dwt
            > file) in
            > Firefox, the various site pages flick from one size to another without any
            > explanation!
            > The homepage opens at the designed 900px width, but then the next linked
            > page
            > might be only around 800px in width. If I click the 'home' link - even on
            > the
            > homepage, it brings me to a smaller version of the homepage!
            > This doesn't happen in Safari preview, can't find out about IE yet...
            >
            > Can anybody help? It's driving me nuts...
            >
            > Millions of thanks...
            > Paul
            >

            • 3. Re: template screen size changes in Firefox site preview-why?
              the1god Level 1
              Ah, I've only now uploaded the site, and it seems to work fine in browsers from the remote site, but it still doesn't explain why it would act so strangely in the preview in CS3
              here's the address anyway: http://www.plainchantproductions.com
              do you get any instance of changing page size when you move through the site? (first 4 links active only as yet)

              Thanks,

              P
              • 4. Re: template screen size changes in Firefox site preview-why?
                Level 7
                Let me understand - you are previewing a page in DW and then clicking away
                from that previewed page? If that's the case, then don't do it.

                You are being confused by a) not understanding root relative vs document
                relative links, and b) not understanding how DW previews files.

                If I have a document with a link to an image that looks like this -

                <img src="/images/foo.gif"...

                That's what's called a root relative link.

                If I preview that document in DW, then the browser gets the document, sees
                the leading "/" and reads that as the root of the hard drive, since the
                browser has no idea where the root of the site is. Thus, the image is
                broken in the preview.

                If I have temp files enabled, then DW will secretly convert the file being
                previewed into a temporary file, and hand that to the browser. This temp
                file has had all root relative links converted to document relative links
                (as you will see by looking at the code in the browser), and has had all
                include files actually embedded in the page, and has had all external CSS
                and js markup embedded in the page. In other words, DW has made the
                document into a stand-alone page.

                If you do not have temp files enabled, all of these links would be broken on
                preview.

                Now - if you are using root relative links, AND you have temp files enabled,
                AND you click away from the previewed document, then all of your links will
                be broken, since DW has not made that linked file into a temp file. This is
                what you are seeing.

                So - if you want to click away on preview, then you must use document
                relative links for the site -

                <img src="../images/foo.gif"... (for example)

                These will still work on preview since the browser knows how to determine
                the current file's location and how to follow that path.

                GEDDIT?



                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (If you *MUST* email me, don't LAUGH when you do so!)
                ==================
                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                ==================


                "the1god" <webforumsuser@macromedia.com> wrote in message
                news:gim2eo$rt4$1@forums.macromedia.com...
                > Ah, I've only now uploaded the site, and it seems to work fine in browsers
                > from
                > the remote site, but it still doesn't explain why it would act so
                > strangely in
                > the preview in CS3
                > here's the address anyway: http://www.plainchantproductions.com
                > do you get any instance of changing page size when you move through the
                > site?
                > (first 4 links active only as yet)
                >
                > Thanks,
                >
                > P
                >

                • 5. Re: template screen size changes in Firefox site preview-why?
                  the1god Level 1
                  'GEDDIT?'
                  Sure, but what's with the attitude? I mean, you didn't have to respond to my message if you didn't want to...

                  Thanks,

                  Paul
                  • 6. Re: template screen size changes in Firefox site preview-why?
                    Level 7
                    Please don't mistake lighthearted banter for attitude.

                    Did I guess right about your question?

                    --
                    Murray --- ICQ 71997575
                    Adobe Community Expert
                    (If you *MUST* email me, don't LAUGH when you do so!)
                    ==================
                    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                    ==================


                    "the1god" <webforumsuser@macromedia.com> wrote in message
                    news:gim91b$6a0$1@forums.macromedia.com...
                    > 'GEDDIT?'
                    > Sure, but what's with the attitude? I mean, you didn't have to respond to
                    > my message if you didn't want to...
                    >
                    > Thanks,
                    >
                    > Paul