A problem with tables in dreamweaver

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • conquer
    New Member
    • Mar 2010
    • 5

    #1

    A problem with tables in dreamweaver

    I made a table in dreamweaver cs4. my banner and navigation cells are centered. but everything below it is shifted to the left. why is that.? hereis my code.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitl ed Document</title>
    <link href="main.css" rel="stylesheet " type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_preloadImage s() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.leng th,a=MM_preload Images.argument s; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!= 0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    function MM_swapImgResto re() { //v3.0
    var i,x,a=document. MM_sr; for(i=0;a&&i<a. length&&(x=a[i])&&x.oSrc;i++ ) x.src=x.oSrc;
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf ("?"))>0&&paren t.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.fo rms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.l ayers&&i<d.laye rs.length;i++) x=MM_findObj(n, d.layers[i].document);
    if(!x && d.getElementByI d) x=d.getElementB yId(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_sw apImage.argumen ts; document.MM_sr= new Array; for(i=0;i<(a.le ngth-2);i+=3)
    if ((x=MM_findObj( a[i]))!=null){docum ent.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    </head>

    <body id="page" onload="MM_prel oadImages('imag es/home-over.gif','imag es/services-over.gif','imag es/investors-over.gif','imag es/press-over.gif','imag es/resources-over.gif','imag es/contact-over.gif')">

    <table width="54%" align="center" border="0" cellpadding="0" cellspacing="0" summary="An E-business Company">
    <caption>
    <img src="images/logo.jpg" width="762" height="82" alt="Company Logo" />
    </caption>
    <tr>
    <th colspan="2" scope="col"><im g src="images/home-out.gif" alt="Home Tab" width="127" height="32" id="Image1" onmouseover="MM _swapImage('Ima ge1','','images/home-over.gif',1)" onmouseout="MM_ swapImgRestore( )" /><img src="images/services-out.gif" alt="Services tab" width="127" height="32" id="Image2" onmouseover="MM _swapImage('Ima ge2','','images/services-over.gif',1)" onmouseout="MM_ swapImgRestore( )" /><img src="images/investors-out.gif" alt="Investors tab" width="127" height="32" id="Image3" onmouseover="MM _swapImage('Ima ge3','','images/investors-over.gif',1)" onmouseout="MM_ swapImgRestore( )" /><img src="images/press-out.gif" alt="Press Room tab" width="127" height="32" id="Image4" onmouseover="MM _swapImage('Ima ge4','','images/press-over.gif',1)" onmouseout="MM_ swapImgRestore( )" /><img src="images/resources-out.gif" alt="Resources tab" width="127" height="32" id="Image5" onmouseover="MM _swapImage('Ima ge5','','images/resources-over.gif',1)" onmouseout="MM_ swapImgRestore( )" /><img src="images/contact-out.gif" alt="Contact tab" width="127" height="32" id="Image6" onmouseover="MM _swapImage('Ima ge6','','images/contact-over.gif',1)" onmouseout="MM_ swapImgRestore( )" /></th>
    </tr>
    <tr>
    <td width="22%" rowspan="2" valign="top"><d iv id="h2">Home</h2><br><img src="images/title_line.gif" width="132" height="9" alt="title line" /></div></td>


    </tr>
    <tr>
    <td width="78%" height="55" align="left">
    <blockquote>
    <p> <img src="images/feature.jpg" width="450" height="170" alt="image of two men in space suits" /></p>
    </blockquote>
    <div id="contentText ">
    <div id="h1" align="left">We are the e-Business Leader</div>
    <p>Dynamic e-business is the evolution of our e-business strategy. It is the dynamic<br />
    adaptation of e-business processes and associated systems to support changing <br />
    business strategies and tactics. It is our initiative to be the leader in delivering the <br />
    standards-based platform you need to build, run and manage Web services<br />
    applications. Our platform provides the infrastructure to integrate sophisticate <br />
    transactions that support dynamic business processes.</p>
    </p>
    <p align="left">Dy namic e-business has been made possible by the recent industry adoption of the<br />
    necessary open-standard technologies and the desire by both IT and management<br />
    for business processes and infrastructure to enable a company's agility.</p>
    <p align="left">We have developed and collaborated with industry partners to lead the industry<br />
    adoption of Universal Description, Discovery and Integration (UDDI), Simple<br />
    Object Access Pro (SOAP), and Web Services Description Language (WSDL). These<br />
    XML-based technologies provide the underpinning necessary to enable services-<br />
    oriented architecture and the platform software to realize dynamic e-business.<br />
    Until recently, technologies were missing that would communicate, describe,<br />
    advertise and syndicate between Web services. Meanwhile, businesses waited for<br />
    the time when their infrastructure and systems would be as flexible as their<br />
    customers, partners and suppliers expected. The wait is over.</p>
    <hr align="left" width="600"/>
    </div>
    <div id="footer">&co py; 2001, SkylineGroup.co m, All Rights reserved.</div>
    </p></td>
    </tr>


    </table>

    </div>

    </body>
    </html>
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    To the left? I see it shifted to the right. The table is definitely centered. It may look offset because the first "home" column has nothing below it.

    Comment

    • conquer
      New Member
      • Mar 2010
      • 5

      #3
      Hello drhowarddrfine:
      THe word home with the line under it? Should be right under the first tab link HOME. When I view it in dreamweaver it looks perfect.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        That's where it is for me, too, and that whole column extends to the bottom of the table. Everything else is to the right of it.

        Which browser is DW set to use?

        Comment

        • conquer
          New Member
          • Mar 2010
          • 5

          #5
          IE 8, and I've never had this problem before.

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            Never, ever use any version of IE to initially test your markup. Always, always use a modern browser. That is, anything but IE: Firefox, Opera, Safari or Chrome. It doesn't matter too much which. Once your markup tests OK there, then we can hack and tweak for IE, but the bugs and quirks for IE are well known, as are the hacks to fix it. You can never trust IE to do anything right.

            I don't have IE in front of me right now. I'll check into it later.

            Comment

            • conquer
              New Member
              • Mar 2010
              • 5

              #7
              Made a discovery. In IE 8 it looks wrong, in IE 6 it looks fine.

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                IE8 does not work like IE7 compatibility mode which doesn't work like IE7 which doesn't work like IE6. IE8 is the worst browser on the planet, technically. What does that tell us about IE6? ;)

                Comment

                • drhowarddrfine
                  Recognized Expert Expert
                  • Sep 2006
                  • 7434

                  #9
                  I'm confused. This is what I see in Chrome and FF and it's almost the same in IE8. Is this what you see?

                  Comment

                  Working...