Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Dreamweaver templates mess up DIV positions



6:51 pm on Jan 29, 2008 (gmt 0)

5+ Year Member

I am having trouble applying or updating a Dreamweaver template (v.8) using CSS. I have a 3 column layout and when I apply or update the template (after overwriting the old template file) the middle and right columns stack instead of appearing side-by-side like they are supposed to. If I create a new page based off of this template everything is where it is supposed to be. The old templates are table based, but I don't think that would effect anything. All of the editable fields are also named the same as the old template so all of the info transfers OK but the positioning of the DIVs are not right. The left column seems to stay where it is supposed to but the "contentA-wide" and "contentB-narrow" columns stack. See the CSS below. Please let me know if you need to see the HTML. Thanks in advance!

/* This is the menu area - left column */
#leftcolumn {
position: relative;
left: 0;
top: 0px;
float: left;

/* This is the main text area - middle column */
#contentA-wide {
margin: 15px 0px 0px;
width: 360px;
float: left;

/* This is the right column */
#contentB-narrow {
width: 180px;
margin-top: 15px;
padding-left: 20px;
border-left-style: dotted;
border-left-width: 1px;
border-left-color: #CCC;
float: right;


10:04 pm on Jan 29, 2008 (gmt 0)

10+ Year Member

At a guess, I'd say there's content in the existing pages that causes the divs to be too wide to display side-by-side -- either too wide to fit in your browser window, or too wide to fit in a containing element (if there is one).

Have you tried creating a new page from the template, then copying-and-pasting content from an existing page into the new template-based page? What happens when you do that?


11:33 pm on Jan 29, 2008 (gmt 0)

5+ Year Member

Copying and pasting into the new template is the only way it is working at this point. Using the "Apply template" feature or the "Update pages..." feature in DW is where the problem occurs. Not being able to use these features creates a bottleneck for me as I have hundreds of pages to update and at this rate it looks as though it might be a long road ahead...

Featured Threads

Hot Threads This Week

Hot Threads This Month