Forums
This topic is locked
dreamweaver-template help!!!!!
24 Jan 2009 05:25:31 rick lawl posted:
hello everyone, im hoping someone will be able to help me. Im making a website with dreamweaver and fireworks. In dreamweaver i want to make a template with a header, the vertical fireworks nav. menu with sub menu, and a footer. I also want to make a editable content area for the main content of the pages. Im having trouble setting up the layout properly and im not sure what the best way is. I tried using tables but with a header image that is 900px long, i can only have one frame at the top. I tried using dreamweavers built in templates with a sidebar, header, footer, and the main content area, but for some reason when i add a editable region, it wont let anything be added such as tables. It gives me a error that says "you have created editable or repeat regions with the same name. The problem must be corrected before the template can be used." any help would be very much appreciatedcode is below
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
@import url("../images/menu.css"
@import url("../images/menu.css"
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #09F;
margin: 0; /* 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: #09F;
}
.twoColFixLtHdr #container {
width: 900px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background: #09F;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #;
text-align: left; /* this overrides the text-align: center on the body element. */
}
.twoColFixLtHdr #header {
background: #09F;
padding: 0 0px 0 0px; /* 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. */
}
.twoColFixLtHdr #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: 0px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.twoColFixLtHdr #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 150px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background: #09F; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 0px 0px 0px 0px;
}
.twoColFixLtHdr #mainContent {
margin: 0 0 0 150px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
}
.twoColFixLtHdr #footer {
padding: 0 5px 0 5px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#0CC;
}
.twoColFixLtHdr #footer p {
margin: 140px; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.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 */
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 a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
-->
</style>
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script language="JavaScript1.2" type="text/javascript" src="../images/mm_css_menu.js"></script>
</head>
<body class="twoColFixLtHdr">
<div id="container">
<div id="header">
<!-- end #header -->
<img src="../images/rm_header.jpg" width="900" height="83" alt="header" /></div>
<div id="sidebar1">
<div id="FWTableContainer877081472"> <img name="menu" src="../images/menu.gif" width="150" height="270" border="0" id="menu" usemap="#m_menu" alt="" />
<map name="m_menu" id="m_menu">
<area shape="rect" coords="0,240,150,270" href="javascript:;" alt="" />
<area shape="rect" coords="0,210,150,240" href="javascript:;" alt="" />
<area shape="rect" coords="0,180,150,210" href="javascript:;" alt="" />
<area shape="rect" coords="0,150,150,180" href="javascript:;" alt="" />
<area shape="rect" coords="0,120,150,150" href="javascript:;" alt="" />
<area shape="rect" coords="0,90,150,120" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer01232 00031_0', 'MMMenu0123200031_0',150,90,'menu');" />
<area shape="rect" coords="0,60,150,90" href="javascript:;" alt="" />
<area shape="rect" coords="0,30,150,60" href="javascript:;" alt="" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuShowMenu('MMMenuContainer01231 95815_1', 'MMMenu0123195815_1',150,30,'menu');" />
<area shape="rect" coords="0,0,150,30" href="javascript:;" alt="" />
</map>
<div id="MMMenuContainer0123200031_0">
<div id="MMMenu0123200031_0" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="javascript:;" id="MMMenu0123200031_0_Item_0" class="MMMIFVStyleMMMenu0123200031_0" onmouseover="MM_menuOverMenuItem('MMMenu0123200031 _0');"> Job Description's </a> <a href="javascript:;" id="MMMenu0123200031_0_Item_1" class="MMMIVStyleMMMenu0123200031_0" onmouseover="MM_menuOverMenuItem('MMMenu0123200031 _0');"> Job Listing's </a> </div>
</div>
<div id="MMMenuContainer0123195815_1">
<div id="MMMenu0123195815_1" onmouseout="MM_menuStartTimeout(1000);" onmouseover="MM_menuResetTimeout();"> <a href="javascript:;" id="MMMenu0123195815_1_Item_0" class="MMMIFVStyleMMMenu0123195815_1" onmouseover="MM_menuOverMenuItem('MMMenu0123195815 _1');"> Syracuse </a> <a href="javascript:;" id="MMMenu0123195815_1_Item_1" class="MMMIVStyleMMMenu0123195815_1" onmouseover="MM_menuOverMenuItem('MMMenu0123195815 _1');"> Auburn </a> <a href="javascript:;" id="MMMenu0123195815_1_Item_2" class="MMMIVStyleMMMenu0123195815_1" onmouseover="MM_menuOverMenuItem('MMMenu0123195815 _1');"> Sullivan </a> <a href="javascript:;" id="MMMenu0123195815_1_Item_3" class="MMMIVStyleMMMenu0123195815_1" onmouseover="MM_menuOverMenuItem('MMMenu0123195815 _1');"> NYS Fair </a> </div>
</div>
</div>
</div>
<div id="mainContent">
<h1><!-- TemplateBeginEditable name="EditRegion3" -->EditRegio<br />
n3<!-- TemplateEndEditable --></h1>
<h1> </h1>
</div>
<div id="footer">
<p align="center"><a href="../pages/site_map.html">Site Map</a> ©2009</p>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>