10 Replies Latest reply on Sep 10, 2007 12:02 PM by Sootica

    Trouble with tables

    Sootica Level 1
      I'd like some help with an issue that's a problem in IE7. Here's one of the pages:
      http://homepage.mac.com/sootica/Sites/DenmarkFAQ/namingtraditions.html

      I'm happy with the way it looks in Safari and Firefox, but not in Internet Explorer, where the top paragraph appears about an inch or so away from the image. I can't see anything that's causing that-- but it keeps happening consistently. Some other pages have other issues, but right now, I want to figure this one out, then can probably fix the others if I get that right.
        • 1. Re: Trouble with tables
          Level 7
          Use CSS to control the top margin on the <p> tag.

          --
          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
          ==================


          "Sootica" <webforumsuser@macromedia.com> wrote in message
          news:fbujd3$rff$1@forums.macromedia.com...
          > I'd like some help with an issue that's a problem in IE7. Here's one of
          > the
          > pages:
          > http://homepage.mac.com/sootica/Sites/DenmarkFAQ/namingtraditions.html
          >
          > I'm happy with the way it looks in Safari and Firefox, but not in Internet
          > Explorer, where the top paragraph appears about an inch or so away from
          > the
          > image. I can't see anything that's causing that-- but it keeps happening
          > consistently. Some other pages have other issues, but right now, I want to
          > figure this one out, then can probably fix the others if I get that right.
          >


          • 2. Re: Trouble with tables
            Sootica Level 1
            Why the top margin? It's the gap between the image of the couple in front of the cottage and the text to its left that is the problem when I view it in IE 7. Am I misundertanding?
            • 3. Re: Trouble with tables
              Level 7
              You have a poorly formed Library item on that page. It contains both
              javascript function declarations, and embedded CSS styles. While the former
              is only bad form, the latter is useless, as it will be ignored in the
              browsers. If you need to style your library items in Design view, use
              Design-time stylesheets.

              Take a look here -

              http://murraytestsite.com/namingtraditions.html

              I have put a red, right border on the cell holding the image. You are
              tempting fate by declaring explicit widths for those two cells, when that
              width is not the same as the total table width.

              Now look here -

              http://murraytestsite.com/namingtraditions2.html

              I have explicitly removed the widths from both cells....

              Make you go Hmmm?

              --
              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
              ==================


              "Sootica" <webforumsuser@macromedia.com> wrote in message
              news:fbusv4$7p7$1@forums.macromedia.com...
              > Why the top margin? It's the gap between the image of the couple in front
              > of the cottage and the text to its left that is the problem when I view it
              > in IE 7. Am I misundertanding?


              • 4. Re: Trouble with tables
                Sootica Level 1
                Thank you. I should have noticed the cell width. In fact, I thought I had looked. Anyway it' s looking better now. Thank you. I've also got the library item better, except that every time it tries to update all the pages in the site that use it, Dreamweaver crashes.
                • 5. Re: Trouble with tables
                  Level 7
                  Which DW and which OS?

                  Can you show us the new contents of the library item, please?

                  --
                  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
                  ==================


                  "Sootica" <webforumsuser@macromedia.com> wrote in message
                  news:fbvob3$54v$1@forums.macromedia.com...
                  > Thank you. I should have noticed the cell width. In fact, I thought I had
                  > looked. Anyway it' s looking better now. Thank you. I've also got the
                  > library
                  > item better, except that every time it tries to update all the pages in
                  > the
                  > site that use it, Dreamweaver crashes.
                  >


                  • 6. Re: Trouble with tables
                    Sootica Level 1
                    The library item is on the site now. Later on I was able to update entire site without Dreamweaver crashing. I've taken out the CSS and fixed a couple of other problems, but don't know anything about changing the Java script, which I just did by using the create roll over image in Dreamweaver.
                    http://homepage.mac.com/sootica/Sites/DenmarkFAQ/cultureandtravel.html

                    • 7. Re: Trouble with tables
                      Level 7
                      Take the javascript out of the Library item and place it in the head of the
                      containing pages. Change this -

                      <!-- #BeginLibraryItem "/Library/Navbar.lbi" -->

                      <script type="text/javascript">
                      <!--
                      function MM_swapImgRestore() { //v3.0
                      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a )&&x.oSrc;i++)
                      x.src=x.oSrc;
                      }

                      function MM_preloadImages() { //v3.0
                      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
                      var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
                      i++)
                      if (a
                      .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a ;}}
                      }

                      function MM_findObj(n, d) { //v4.01
                      var p,i,x; if(!d) d=document;
                      if((p=n.indexOf("?"))>0&&parent.frames.length) {
                      d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
                      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
                      x=d.forms
                      [n];
                      for(i=0;!x&&d.layers&&i<d.layers.length;i++)
                      x=MM_findObj(n,d.layers .document);
                      if(!x && d.getElementById) x=d.getElementById(n); return x;
                      }

                      function MM_swapImage() { //v3.0
                      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
                      for(i=0;i<(a.length-2);i+=3)
                      if ((x=MM_findObj(a
                      ))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
                      x.oSrc=x.src; x.src=a[i+2];}
                      }
                      //-->
                      </script>

                      <table width="840">

                      to this -

                      <!-- #BeginLibraryItem "/Library/Navbar.lbi" -->

                      <table width="840">

                      In the Library item, and save it.

                      Then in the parent pages, change this -

                      </head>

                      to this -

                      <script type="text/javascript">
                      <!--
                      function MM_swapImgRestore() { //v3.0
                      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a )&&x.oSrc;i++)
                      x.src=x.oSrc;
                      }

                      function MM_preloadImages() { //v3.0
                      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
                      var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
                      i++)
                      if (a
                      .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a ;}}
                      }

                      function MM_findObj(n, d) { //v4.01
                      var p,i,x; if(!d) d=document;
                      if((p=n.indexOf("?"))>0&&parent.frames.length) {
                      d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
                      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
                      x=d.forms
                      [n];
                      for(i=0;!x&&d.layers&&i<d.layers.length;i++)
                      x=MM_findObj(n,d.layers .document);
                      if(!x && d.getElementById) x=d.getElementById(n); return x;
                      }

                      function MM_swapImage() { //v3.0
                      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
                      for(i=0;i<(a.length-2);i+=3)
                      if ((x=MM_findObj(a
                      ))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
                      x.oSrc=x.src; x.src=a[i+2];}
                      }
                      //-->
                      </script>
                      </head>

                      That way, the javascript will be in the head of the page containing the
                      Library item, not in the Library item itself.

                      --
                      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
                      ==================


                      "Sootica" <webforumsuser@macromedia.com> wrote in message
                      news:fc0v74$es6$1@forums.macromedia.com...
                      > The library item is on the site now. Later on I was able to update entire
                      > site
                      > without Dreamweaver crashing. I've taken out the CSS and fixed a couple of
                      > other problems, but don't know anything about changing the Java script,
                      > which I
                      > just did by using the create roll over image in Dreamweaver.
                      > http://homepage.mac.com/sootica/Sites/DenmarkFAQ/cultureandtravel.html
                      >
                      >
                      >


                      • 8. Re: Trouble with tables
                        Sootica Level 1
                        I was in a hurry this morning and didn't notice the question about which Dreamweaver . It's Dreamweaver 8 and OS 10.4, but it's already working. I'm curious about why the javascript needs to be moved. I wanted the menu in a library item so I could change easily if needed-- will the way it is now cause problems in some browsers?
                        • 9. Re: Trouble with tables
                          Level 7
                          No. A well formed Library items should never contain <html>, <head>, or
                          <body> tags, nor should it contain embedded or links to external
                          stylesheets. It also shouldn't contain any javascript function
                          declarations, although the latter will not (should not) cause any problems.

                          --
                          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
                          ==================


                          "Sootica" <webforumsuser@macromedia.com> wrote in message
                          news:fc24ei$m8i$1@forums.macromedia.com...
                          >I was in a hurry this morning and didn't notice the question about which
                          > Dreamweaver . It's Dreamweaver 8 and OS 10.4, but it's already working.
                          > I'm
                          > curious about why the javascript needs to be moved. I wanted the menu in a
                          > library item so I could change easily if needed-- will the way it is now
                          > cause
                          > problems in some browsers?
                          >


                          • 10. Re: Trouble with tables
                            Sootica Level 1
                            OK, thanks... this will have to wait till the next weekend.