4 Replies Latest reply: Sep 28, 2006 12:44 AM by whiskey3 RSS

    Problem with Tables/DIV Tag?

    whiskey3 Community Member
      Link here:

      http://www.anndruffel.com/books/standingingodslight.htm

      I'm trying to get the price tucked up underneath the book image....if I merge the cells the text doesn't stay centered? Is the DIV tag causing a problem? Do I need DIV inside tables all the time....it seems like DWMX didn't do this until DMWV8?
        • 1. Re: Problem with Tables/DIV Tag?
          Newsgroup_User Community Member
          whiskey3 wrote:

          > Link here:
          >
          > http://www.anndruffel.com/books/standingingodslight.htm
          >
          > I'm trying to get the price tucked up underneath the book image....if I merge
          > the cells the text doesn't stay centered? Is the DIV tag causing a problem? Do
          > I need DIV inside tables all the time....it seems like DWMX didn't do this
          > until DMWV8?
          >

          Nope you don't need <div>s inside of tables....it basically just
          clutters up the code.

          The reason youre having isues is because the text in the second column
          is pulling the cell in the first coloumn apart. Creating a lot of space.
          The more text the more the sapce will increase.

          The solution:

          Never try and build a page using just one large table and spliting and
          merging the cells.....it won't work.

          You need to remove all the content from column one, merge the cell back
          into its original state, ONE cell. In that cell insert another table 1
          column x as many rows as you want. Strictly speaking you don't actually
          need any more than one row because all the content is centered but as
          you are new to web-design you'll probably find it less complicated to
          put each element in its own row.

          Note of caution: make sure teh newly inserted table is align to the top
          of the firts col. Do this by placing your curtsor in the first col going
          to properties inspector and choosing 'top' form the vert drop enu.

          I don't know what version of DW you cerated this page in but it
          indicates that it wasnt 8 as you have no doc type present. It may well
          be that you are updating the page which was cretaed in a version prior
          to 04.

          • 2. Re: Problem with Tables/DIV Tag?
            dev_all
            quote:

            Originally posted by: whiskey3
            Link here:

            http://www.anndruffel.com/books/standingingodslight.htm

            I'm trying to get the price tucked up underneath the book image....if I merge the cells the text doesn't stay centered? Is the DIV tag causing a problem? Do I need DIV inside tables all the time....it seems like DWMX didn't do this until DMWV8?



            Try this code.

            Dev_all
            • 3. Re: Problem with Tables/DIV Tag?
              Newsgroup_User Community Member
              Ugh.

              Lose this nasty NORTON stuff, though -

              <script language="JavaScript">
              <!--

              function SymError()
              {
              return true;
              }

              window.onerror = SymError;

              var SymRealWinOpen = window.open;

              function SymWinOpen(url, name, attributes)
              {
              return (new Object());
              }

              window.open = SymWinOpen;

              //-->
              </script>

              And this -

              <script language="JavaScript">
              <!--
              var SymRealOnLoad;
              var SymRealOnUnload;

              function SymOnUnload()
              {
              window.open = SymWinOpen;
              if(SymRealOnUnload != null)
              SymRealOnUnload();
              }

              function SymOnLoad()
              {
              if(SymRealOnLoad != null)
              SymRealOnLoad();
              window.open = SymRealWinOpen;
              SymRealOnUnload = window.onunload;
              window.onunload = SymOnUnload;
              }

              SymRealOnLoad = window.onload;
              window.onload = SymOnLoad;

              //-->
              </script>


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


              • 4. Re: Problem with Tables/DIV Tag?
                whiskey3 Community Member
                Thanks a bunch I used that code and removed the Norton crap? How the hell did that get in there? Thanks for the help.....