Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

center align issue dreamweaver mx 2004 7.0.1

Posted 17 Jan 2006 21:45:25
1
has voted
17 Jan 2006 21:45:25 Lori Wilson posted:
My issue is as follows:


Here is the site to see the problem: homepage.mac.com/lwdesign/subfolder5/gallery.htm

I have also included my html code from both templates at the bottom of this email.

Gallery is the only problem page. The main body area table row needs to be 500 pixels in height (so I can insert a w 800 x h 500 flash media) the other 4 pages main body area table row is 376 pixels in height (index, services, about us and contact).

I have a 2 templates. Everything is exactly the same except for one of the templates (main body) table row is 376 in and the other 500 in height.

PROBLEM: When using center align for both templates (I want all pages to be seamless) the template with 500 row height shifts around 10 pixels to the left when viewed on a 21" monitor (showing the dark grey background color) from within all browsers out there. The only work around is left align and want to use the center align! Or, I could make it 500 in height but then my footer artwork is way down and not visible taking away from my design.






Gallery template (500 pixel table row):




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Welcome To Drywall Guy</title>
<!-- TemplateEndEditable --><style type="text/css">
<!--
body {
background-color: #d6d6d6;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<meta name="keywords" content="drywall, taping, remodel, knockdown, racetrack, arches, coffards, custom, octagon, square, vault ceiling, hanging sheetrock, taping, framing, construction, bullnose, ceiling, painting, respray, patchwork, smoke damage, water damage">
<meta name="description" content="Our commitment is to provide drywall services for residential homes through every stage of the process with professionalism and high quality standards – achieving satisfied customers ">
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<script language="JavaScript" type="text/JavaScript">
<!--
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_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_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 onLoad="MM_preloadImages('../images/home-over.gif','../images/services-over.gif','../images/gallery-over.gif','../images/aboutus-over.gif','../images/contact-over.gif')">
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f0f0f0">
<tr>
<td colspan="8"><img src="../images/dguy_01.gif" width="800" height="60"></td>
</tr>
<tr>
<td width="217"><img src="../images/dguy_02.gif" width="217" height="40"></td>
<td width="183"><img src="../images/dguy_03.gif" width="183" height="40"></td>
<td width="75"><a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','../images/home-over.gif',1)"><img src="../images/home.gif" alt="Home" name="Home" width="75" height="40" border="0"></a></td>
<td width="69"><a href="services.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Services','','../images/services-over.gif',1)"><img src="../images/services.gif" alt="Services" name="Services" width="69" height="40" border="0"></a></td>
<td width="72"><a href="gallery.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Gallery','','../images/gallery-over.gif',1)"><img src="../images/gallery.gif" alt="Gallery" name="Gallery" width="72" height="40" border="0"></a></td>
<td width="71"><a href="aboutus.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('About Us','','../images/aboutus-over.gif',1)"><img src="../images/aboutus.gif" alt="About Us" name="About Us" width="71" height="40" border="0"></a></td>
<td width="73"><a href="contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Contact','','../images/contact-over.gif',1)"><img src="../images/contact.gif" alt="Contact" name="Contact" width="73" height="40" border="0"></a></td>
<td width="40"><img src="../images/dguy_09.gif" width="40" height="40"></td>
</tr>
<tr>
<td rowspan="2"><img src="../images/dguy_10.gif" width="217" height="52"></td>
<td height="26" colspan="7"><img src="../images/dguy_11.gif" width="583" height="26"></td>
</tr>
<!-- TemplateBeginEditable name="1" -->
<tr>
<td height="14" valign="top"><img src="../images/dguy_12.gif" width="183" height="26"></td>
<td height="14" valign="top" bgcolor="#f0f0f0"> </td>
<td height="14" valign="top" bgcolor="#f0f0f0"> </td>
<td height="14" valign="top" bgcolor="#f0f0f0"> </td>
<td height="14" colspan="2" valign="top" bgcolor="#f0f0f0"><div align="center"></div></td>
<td height="14" valign="top" bgcolor="#f0f0f0"> </td>
</tr>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="2" -->
<tr>
<td height="37" valign="top"><img src="../images/dguy_15.gif" width="217" height="51"></td>
<td height="37" colspan="7" valign="top" bgcolor="#f0f0f0"> </td>
</tr>
<!-- TemplateEndEditable -->
<tr bgcolor="#f0f0f0">
<td height="500" colspan="8" valign="top" bgcolor="#f0f0f0"><!-- TemplateBeginEditable name="3" --><!-- TemplateEndEditable --></td>
</tr>
<tr bgcolor="#f0f0f0">
<td height="37" colspan="8"><img src="../images/dguy_33.gif" width="800" height="77"></td>
</tr>
</table>
</body>
</html>








Home, Services, About Us, Contact template (376 pixels table row):



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Welcome To Drywall Guy</title>
<!-- TemplateEndEditable --><style type="text/css">
<!--
body {
background-color: #d6d6d6;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<meta name="keywords" content="drywall, taping, remodel, knockdown, racetrack, arches, coffards, custom, octagon, square, vault ceiling, hanging sheetrock, taping, framing, construction, bullnose, ceiling, painting, respray, patchwork, smoke damage, water damage">
<meta name="description" content="Our commitment is to provide drywall services for residential homes through every stage of the process with professionalism and high quality standards – achieving satisfied customers ">
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<script language="JavaScript" type="text/JavaScript">
<!--
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_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_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 onLoad="MM_preloadImages('../images/home-over.gif','../images/services-over.gif','../images/gallery-over.gif','../images/aboutus-over.gif','../images/contact-over.gif')">
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f0f0f0">
<tr>
<td colspan="8"><img src="../images/dguy_01.gif" width="800" height="60"></td>
</tr>
<tr>
<td width="217"><img src="../images/dguy_02.gif" width="217" height="40"></td>
<td width="183"><img src="../images/dguy_03.gif" width="183" height="40"></td>
<td width="75"><a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','../images/home-over.gif',1)"><img src="../images/home.gif" alt="Home" name="Home" width="75" height="40" border="0"></a></td>
<td width="69"><a href="services.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Services','','../images/services-over.gif',1)"><img src="../images/services.gif" alt="Services" name="Services" width="69" height="40" border="0"></a></td>
<td width="72"><a href="gallery.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Gallery','','../images/gallery-over.gif',1)"><img src="../images/gallery.gif" alt="Gallery" name="Gallery" width="72" height="40" border="0"></a></td>
<td width="71"><a href="aboutus.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('About Us','','../images/aboutus-over.gif',1)"><img src="../images/aboutus.gif" alt="About Us" name="About Us" width="71" height="40" border="0"></a></td>
<td width="73"><a href="contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Contact','','../images/contact-over.gif',1)"><img src="../images/contact.gif" alt="Contact" name="Contact" width="73" height="40" border="0"></a></td>
<td width="40"><img src="../images/dguy_09.gif" width="40" height="40"></td>
</tr>
<tr>
<td rowspan="2"><img src="../images/dguy_10.gif" width="217" height="52"></td>
<td height="26" colspan="7"><img src="../images/dguy_11.gif" width="583" height="26"></td>
</tr>
<!-- TemplateBeginEditable name="1" -->
<tr>
<td height="14" valign="top"><img src="../images/dguy_12.gif" width="183" height="26"></td>
<td height="14" valign="top" bgcolor="#f0f0f0"> </td>
<td height="14" valign="top" bgcolor="#f0f0f0"> </td>
<td height="14" valign="top" bgcolor="#f0f0f0"> </td>
<td height="14" colspan="2" valign="top" bgcolor="#f0f0f0"><div align="center"></div></td>
<td height="14" valign="top" bgcolor="#f0f0f0"> </td>
</tr>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="2" -->
<tr>
<td height="37" valign="top"><img src="../images/dguy_15.gif" width="217" height="51"></td>
<td height="37" colspan="7" valign="top" bgcolor="#f0f0f0"> </td>
</tr>
<!-- TemplateEndEditable -->
<tr bgcolor="#f0f0f0">
<td height="376" colspan="8" valign="top" bgcolor="#f0f0f0"><!-- TemplateBeginEditable name="3" --><!-- TemplateEndEditable --></td>
</tr>
<tr bgcolor="#f0f0f0">
<td height="37" colspan="8"><img src="../images/dguy_33.gif" width="800" height="77"></td>
</tr>
</table>
</body>
</html>

Reply to this topic