473,383 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //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&&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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body id="page" onload="MM_preloadImages('images/home-over.gif','images/services-over.gif','images/investors-over.gif','images/press-over.gif','images/resources-over.gif','images/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"><img src="images/home-out.gif" alt="Home Tab" width="127" height="32" id="Image1" onmouseover="MM_swapImage('Image1','','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('Image2','','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('Image3','','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('Image4','','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('Image5','','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('Image6','','images/contact-over.gif',1)" onmouseout="MM_swapImgRestore()" /></th>
</tr>
<tr>
<td width="22%" rowspan="2" valign="top"><div 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">Dynamic 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">&copy; 2001, SkylineGroup.com, All Rights reserved.</div>
</p></td>
</tr>


</table>

</div>

</body>
</html>
Mar 28 '10 #1
8 1910
drhowarddrfine
7,435 Expert 4TB
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.
Mar 28 '10 #2
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.
Mar 28 '10 #3
drhowarddrfine
7,435 Expert 4TB
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?
Mar 28 '10 #4
IE 8, and I've never had this problem before.
Mar 28 '10 #5
drhowarddrfine
7,435 Expert 4TB
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.
Mar 28 '10 #6
Made a discovery. In IE 8 it looks wrong, in IE 6 it looks fine.
Mar 28 '10 #7
drhowarddrfine
7,435 Expert 4TB
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? ;)
Mar 28 '10 #8
drhowarddrfine
7,435 Expert 4TB
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?

Mar 28 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: sKodi | last post by:
I have a problem. When I had IIS 5.1 my Dreamweaver MX created ADODB.Recordset objects for my ASP pages. Everything worked great. But now it causes HTTP500 - Internal Server Error. What's up?
19
by: Bill Davidson | last post by:
My wife's friend had a website built for his company, and it looks great using a PC. When viewed on a Mac using either Safari or Explorer the formatting is terrible. The home page is not too...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
43
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the...
7
by: Wilhelm Kutting | last post by:
Hi again i want to replace the following layouttabel with css/xhtml: ---------------------------------- <table width="640" cellspacing="0"> <tr> <td valign="top">My Title</td> <td...
3
by: maxhitchcock | last post by:
Hi, I made a lots tables in Dreamweaver to put my images in it then I made a menu in Javascript. I'm pretty sure there's no error in my size of cells and they are all valign="top". In Internet...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
2
by: =?Utf-8?B?SmVmZnJleQ==?= | last post by:
I am developing ASP.net projects for an Intranet application using Dreamweaver MX. My questions are: 1. I have had book Dreamweaver MX HOT. Where can I find more information or books for...
1
by: MarkW | last post by:
Sometime back I bought a couple books on Dreamweaver and Flash for the CS2 Suite and along with it bought a book for Php, Foundation Php for Dreamweaver 8. I read the Dreamweaver and Flash books...
9
chumlyumly
by: chumlyumly | last post by:
Hello - Please help! I'm creating search pages using Dreamweaver 8, PHP, and MySQL database with Mac OS X. I think my code is good, but when I run my query, I come up with no data, even though...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.