PDA

View Full Version : Template saving problem (help a lost newbie)


stray_cat
01-09-2009, 07:44 PM
Hi there,
Please forgive my newbie-ness. I'm trying to teach myself Dreamweaver from some books, and am having only limited success. I've created my first page (bully for me!) and I'm trying to save it as a template. So I click "Save as template" and I get this message: "There is an error at line 164, column 13 (absolute position 9622) of "C:\Users\Cat\Documents\Website\Photography.html": Unbalanced #EndEditable tag"
I've looked at that position and can't find any tag that isn't closed, and I've tried looking through the rest of the code and searching for "Editable" and "End" with no luck. I would really appreciate any help at all that you can offer. Thanks very much!

stray_cat
01-09-2009, 07:46 PM
This is my code -- I hope it's not against the rules to post the whole thing here. The FAQ don't seem to discourage it.

<!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>Cat London Photography</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 100; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
background-color: #FFFFFF;
}
.thrColLiqHdr #container {
width: 80%;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
background-color: #FFFFFF;
background-image: url(Images/VibrantBG.jpg);
background-repeat: no-repeat;
}
.thrColLiqHdr #header {
padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
background-color: ffffff;
background-image: url(VibrantBG.jpg);
background-repeat: no-repeat;
}
.thrColLiqHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}

/* Tips for sidebars:
1. Since we are working in percentages, it's best not to use side padding on the sidebars. It will be added to the width for standards compliant browsers creating an unknown actual width.
2. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColLiqHdr #sidebar1 p" rule.
3. Since Explorer calculates widths after the parent element is rendered, you may occasionally run into unexplained bugs with percentage-based columns. If you need more predictable results, you may choose to change to pixel sized columns.
*/
.thrColLiqHdr #sidebar1 {
float: left; /* this element must precede in the source order any element you would like it be positioned next to */
width: 22%; /* since this element is floated, a width must be given */
background: ffffff; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 15px 0; /* top and bottom padding create visual space within this div */
}
.thrColLiqHdr #sidebar2 {
float: right; /* this element must precede in the source order any element you would like it be positioned next to */
width: 23%; /* since this element is floated, a width must be given */
background: ffffff; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 15px 0; /* top and bottom padding create visual space within this div */
}
.thrColLiqHdr #sidebar1 p, .thrColLiqHdr #sidebar1 h3, .thrColLiqHdr #sidebar2 p, .thrColLiqHdr #sidebar2 h3 {
margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
margin-right: 10px;
}

/* Tips for mainContent:
1. the space between the mainContent and sidebars is created with the left and right margins on the mainContent div.
2. to avoid float drop at a supported minimum 800 x 600 resolution, elements within the mainContent div should be 300px or smaller (this includes images).
3. in the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs.
*/
.thrColLiqHdr #mainContent {
margin-top: 0;
margin-right: 26%;
margin-bottom: 0;
margin-left: 26%;
}

.thrColLiqHdr #footer {
padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#FFFFFF;
}
.thrColLiqHdr #footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: dotted;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #999999;
border-right-color: #999999;
border-bottom-color: #999999;
border-left-color: #999999;
}

/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page The floated element must precede the element it should be next to on the page. */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain its child floats */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
.style2 {
color: #333333;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
}
.style3 {font-weight: bold}
.style4 {font-size: x-small}
.style5 {font-size: xx-small}
-->
</style>
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColLiqHdr #sidebar2, .thrColLiqHdr #sidebar1 { padding-top: 30px; }
.thrColLiqHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<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 class="thrColLiqHdr" onload="MM_preloadImages('Images/Buttons/HomeRollover.jpg','Images/Buttons/GalleriesRollover.jpg','Images/Buttons/PublishedWorkRollover.jpg','Images/Buttons/StockRollover.jpg','Images/Buttons/ModelsRollover.jpg','Images/Buttons/ContactRollover.jpg')">

<div id="container">
<div id="header">
<h1 align="right"><img src="Images/BannerMaybe.jpg" alt="Cat London Photography" width="400" height="130" /></h1>
<!-- end #header --></div>
<div id="sidebar1">
<h3 align="center"><a href="/photography/home.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Home','','Images/Buttons/HomeRollover.jpg',1)"><img src="Images/Buttons/Home.jpg" alt="Home" name="Home" width="150" height="50" border="0" id="Home" /></a><a href="/photography/galleries.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Galleries','','Images/Buttons/GalleriesRollover.jpg',1)"><img src="Images/Buttons/Galleries.jpg" alt="Galleries" name="Galleries" width="150" height="50" border="0" id="Galleries" /></a><a href="/photography/publishedwork.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('PublishedWork','','Images/Buttons/PublishedWorkRollover.jpg',1)"><img src="Images/Buttons/PublishedWork.jpg" alt="Published Work" name="PublishedWork" width="150" height="50" border="0" id="PublishedWork" /></a><a href="/photography/stock.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Stock','','Images/Buttons/StockRollover.jpg',1)"><img src="Images/Buttons/Stock.jpg" alt="Stock" name="Stock" width="150" height="50" border="0" id="Stock" /></a><a href="/photography/models.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Models','','Images/Buttons/ModelsRollover.jpg',1)"><img src="Images/Buttons/Models.jpg" alt="Models" name="Models" width="150" height="50" border="0" id="Models" /></a><a href="/photography/contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','Images/Buttons/ContactRollover.jpg',1)"><img src="Images/Buttons/Contact.jpg" alt="Contact" name="Contact" width="150" height="50" border="0" id="Contact" /></a></h3>
<p>&nbsp;</p>
<!-- end #sidebar1 --></div>
<div class="style3" id="sidebar2">
<h3>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } -->
</h3>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img src="Images/Quote2.jpg" alt="Photography to me is catching a moment which is passing, and which is true." width="213" height="244" /></p>
</div>
<div class="style2" id="mainContent">
<h1>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } --></h1>
<p>This is filler text. Make sure actual text mentions: creative vision, digital imaging, creative and professional retouching. </p>
<p>When I was thirteen years old, my dad showed me how to use his manual Nikon F3, and I was hooked at once. </p>
<p>I now have four years of professional photographic experience under my belt and am still learning constantly.</p>
<p>I think of photography as a process -- shoots should be fun for everyone involved, and it's always more fun if everyone is involved through contributing ideas. I'm interested in all kinds of collaborations with models, make-up artists, and other photographers anywhere in southwestern Ontario. Right now I'm working on expanding my stock photography through TFCD or TFP work, but I'm always interested in all kinds of work (though I have no particular interest in nude or erotic photography). I love taking pictures and working with a wide variety of people.</p>
<p>I hope you’ll take a moment to browse the galleries. My work has been featured in several books; visit the Published Work section to view my book covers and other published work. My iStock page can be viewed <U>here</U> [link to iStock portfolio — see info about referrals in the Stock section].</p>
<h2>&nbsp;</h2>
<!-- end #mainContent --></div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer">
<p align="center">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } -->
<span class="style5">© Cat London 2008</span></p>
<div align="center" class="style5">
<!-- end #footer -->
</div>
</div>
<div align="center">
<span class="style5">
<!-- end #container -->
</span><span class="style4">
</span> </div>
</div>
</body>
</html>

coloeagle
01-09-2009, 08:48 PM
Whew, you need to start by doing some clean up on the page.

You have several dtd's and in the wrong places. You need only one and it needs to be at the top of the page.

With the comment tags remove the extra blank spaces.

Your main css style really should be on a separate page and use a call tag on the page.

Take care of at least the first two items, this will make it simpler to hopefully find the actual problem. (possible this will solve the problem as well)