PDA

View Full Version : Dreamweaver CS4 Help With Template


Gevaux
01-21-2010, 02:42 PM
Hi Could some pleas ehave a look at my code for a template ? i keep getting a unbalanced body tag ? thanks matt

<!-- <!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">
<!-- InstanceBegin template="/Templates/IMDL-template.dwt" codeOutsideHTMLIsLocked="false" --><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!-- InstanceBeginEditable name="doctitle" -->
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- InstanceEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script language="JavaScript" 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];}}
}
//-->
</script>
<script language="JavaScript1.2" src="fw_menu.js" type="text/javascript"></script>
<link rel="stylesheet" href="styles.css" type="text/css" />
<style type="text/css">
<!--
a {
font-family: Arial, Helvetica, sans-serif;
color: #8BBADA;
font-size: 12px;
}
a:hover {
color: #8BBADA;
}
a:active {
color: #8BBADA;
}
-->
</style>
<meta name="Keywords" content="Fulfilment Services, Direct Marketing Lists, Document Management, List Management, Call Centre, Data Management, Profling and Modleling" />
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
-->
</style>
<!-- InstanceBeginEditable -->
<!-- InstanceEndEditable -->
</head>

<body>
<!-- InstanceBeginEditable -->
<meta name="IMDL" content="IMDL has the largest investors database in the UK, we also have other consumer lists, see direct marketing page." />

<script language="JavaScript1.2" type="text/javascript">fwLoadMenus();</script>
<img src="../images/heading_stip.gif" alt="" name="heading_stip" width="549" height="12" border="0" id="heading_stip" />
<table border="0" cellpadding="0" cellspacing="0" width="100" align="center">

<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="34" height="1" border="0" alt="" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="117" height="1" border="0" alt="" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="22" height="1" border="0" alt="" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="69" height="1" border="0" alt="" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="480" height="1" border="0" alt="" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="58" height="1" border="0" alt="" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="1" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="6" bgcolor="#006699">&nbsp;</td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="15" border="0" alt="" /></td>
</tr>
<tr align="center">
<td colspan="6" bgcolor="#006699"><img src="../images/top_two.gif" alt="" name="top_two" width="780" height="61" border="0" id="top_two" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="61" border="0" alt="" /></td>
</tr>
<tr align="center">
<td colspan="6" bgcolor="#006699"><img src="../images/companynamestip.gif" alt="" name="companynamestip" width="780" height="41" border="0" id="companynamestip" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="41" border="0" alt="" /></td>
</tr>
<tr align="center">
<td colspan="6" bgcolor="#99CCCC"><img src="../images/middlestip.gif" alt="" name="middlestip" width="780" height="13" border="0" id="middlestip" /></td
><td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="13" border="0" alt="" /></td>
</tr>
<tr>
<td rowspan="15" colspan="2" background="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/left_strip.gif" valign="top">
<br />
<br />
<br />
<br />
<table width="100%" height="362" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="23%" height="362">&nbsp;</td>
<td width="77%" valign="top" height="362"><p><br />
<br />
</p>
<ul id="MenuBar1" class="MenuBarVertical">
<li class="NormalTxt"><a href="index.htm">Home</a> </li>
<li class="NormalTxt"><a href="Services.htm" class="MenuBarItemSubmenu">Services</a>
<ul>
<li><a href="direct_marketing_lists.htm" class="MenuBarItemSubmenu">Direct Maketing Lists</a>
<ul>
<li><a href="business_lists.htm">Business To Business (B2B)</a></li>
<li><a href="consumer_lists.htm">Business To Consumer (B2C)</a></li>
<li><a href="UK_investors.html">UK Investors</a></li>
</ul>
</li>
<li><a href="fulfilment_services.htm">Fulfilment Services</a></li>
<li><a href="Call_Centre.htm">Call Centre</a></li>
<li><a href="Data_Management.htm">Database Management</a></li>
<li><a href="List_Management.htm">List Management</a></li>
<li><a href="#">International Lists</a></li>
<li><a href="profling_and_modeling.htm">Profiling and Modeling</a></li>
<li><a href="document_scanning.htm">Document Management</a></li>
</ul>
</li>
<li class="NormalTxt"><a href="news.htm">News</a> </li>
<li class="NormalTxt"><a href="Contact_us.htm" class="MenuBarItemSubmenu">Contact Us</a>
<ul>
<li><a href="#">Matt</a></li>
</ul>
</li>
<li class="NormalTxt"><a href="request_a_quote.htm">Request A Quote</a></li>
<li class="NormalTxt"><a href="Useful_Links.htm">Useful Links</a></li>
</ul>
<p><br />
<br />
<br />
<br />
<br />
</p></td>
</tr>
</table>
</td>
<td rowspan="15" bgcolor="#FFFFFF">&nbsp;</td>
<td rowspan="2" colspan="2" bgcolor="#FFFFFF" class="title"><!-- InstanceBeginEditable "Title" --><b> Welcome To Investors Marketing Data Limited</b><!-- InstanceEndEditable --></td>
<td rowspan="15" valign="top" background="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/sidebg.gif"><img src="../images/sidebg.gif" alt="" name="sidebg" width="58" height="9" border="0" id="sidebg" /></td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="9" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="15" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="12" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="2" rowspan="12" valign="top" bgcolor="#FFFFFF"> <!-- InstanceBeginEditable "body" -->
<span class="NormalTxt"><span class="NormalTxt">Investors Marketing Data Limited &quot;IMDL&quot; is a provider of high quality UK and International mailing and telemarketing lists. Aside from the lists that we own and manage,&nbsp;
we also have relationships with list owners throughout the world this enables us to source just about any list
you may require. All our
UK lists come with a deliverability guarantee to ensure that you have the best possible outcome from your
mailing or tele-marketing campaign.

</span>
</span>
<p align="left" class="text">&nbsp;</p>
<span class="NormalTxt"><span class="NormalTxt"> Strenghting your business through <a href="direct_marketing_lists.htm">direct marketing</a> is easy with IMDL, IMDL can work with you to
maximize your marketing, Saving money and improving results. We specialize
in providing a range of data services to help you achive success in your direct marketing
campaigns:</span></span><span class="NormalTxt"></span>
<p class="text"><span class="NormalTxt"><img src="../images/up-arrow.jpg" width="180" height="180" hspace="50" vspace="25" align="right" /></span></p>
<dl>
<ul>
<li> <span class="NormalTxt"><a href="direct_marketing_lists.htm">Direct marketing lists</a></span></li>
<li class="NormalTxt"><a href="fulfilment_services.htm">Fulfilment Services</a></li>
<li class="NormalTxt"><a href="document_scanning.htm">Document management</a></li>
<li class="NormalTxt"> <a href="List_Management.htm">List management </a></li>
<li class="NormalTxt"><a href="Call_Centre.htm"> Call centre </a></li>
<li class="NormalTxt"><a href="Data_Management.htm"> Data management cleaning </a></li>
<li class="NormalTxt"><a href="profling_and_modeling.htm"> Profling and modeling</a></li>
</ul>
<p>&nbsp;</p>
</dl>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">
<p class="links">&nbsp;</p>
</div></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="20" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="31" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="22" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="19" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="20" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="20" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="20" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="20" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="37" border="0" alt="" /></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="11" border="0" alt="" /></td>
</tr>
<tr>
<td height="2"><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="114" border="0" alt="" /></td>
</tr>
<tr>
<td bgcolor="#006699" colspan="2" valign="top">&nbsp;</td>
<td bgcolor="#006699">&nbsp;</td>
<td bgcolor="#006699" colspan="2" valign="top" align="left">
<div align="center"><font color="#FFFFFF" size="2">All Rights Reserved Copyright
&copy; &quot;IMDL&quot; Investors Marketing Data Limited</font></div>
</td>
<td bgcolor="#006699" valign="top">&nbsp;</td>
<td height="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
<!-- InstanceEnd -->
</body>
</html>

domedia
01-21-2010, 04:14 PM
The body tag is in the right position. Was that your concern? (not sure what you meant by 'unbalanced')

Corrosive
01-21-2010, 04:53 PM
This isn't good...

<td><img src="file:///C|/Documents and Settings/user1/Desktop/IMDL Website 2010/images/spacer.gif" width="1" height="20" border="0" alt="" /></td>

The C drive reference means you haven't defined your site correctly and the spacer gifs and tables tell me you have exported your whole page from Photoshop.

Both of these will cause you lost of errors.

DWcourse
01-21-2010, 05:11 PM
You have a number of issues including:

1. Your document starts with a comment tag (<!-- )
2. Two "doctitle" editable regions
3. A meta tag in the body of your page

Honestly, I'm not sure how you even manage to make those things happen in Dreamweaver. But I recommend you start over with a new template.

And make sure that you create your documents using the File>New command and not by using Save As… on a template.