homepage Welcome to WebmasterWorld Guest from 54.166.110.247
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Dreamweaver templates mess up DIV positions
watermac77




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

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 {
width:250px;
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;
}

 

sonjay




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

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?

watermac77




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

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...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved