![]() |
Cannot create new file from Dreamweaver template
Hi
Just done my first website on dreamweaver. Then decided to seperate the HTML from the CSS. Now when I try to create a new file from the template in Dreamweaver I get a message that there is an error at line 185 (there is no line 185). The container div seems to be an issue bu I don't know how to fix it. Here is a copy of the HTML. Thanks in advance for any help with this. Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
What does the error message say?
One tip - steer well clear of DW. Regards, LC. |
Dreamweaver phobia?
2 Attachment(s)
Dreamweaver is a wonderful, helpful, time-saving, error-correcting, etc. editing tool so cannot understand why some denounce DW out of hand.
However "Templates" are not my favorite. In DW, under MODIFY menu you have options >Template>Check Syntax and/or >Detach From Template. Is the error message perhaps referring to the CSS file? There may be errors I have not checked but suspect you should start anew with proper CSS link path set up beforehand. You need to define a root site folder and save your template doc to that site's Template folder, then choose FILE>New>from that template doc. [see screen shot] Why <body class="container">? Would think it should be an ID such as <body id="home"> ? See scren shot of message below and correct your template to move <--editable region--> markers outside block elements Code:
<body class="container">Code:
#wrap { margin: 0 auto; margin: 0 auto; width: 85%; max-width:950px; min-width: 250px; position: relative; background: rgba(255,255,255,0.25); z-index: 400; } |
Quote:
It's probably the thought that it generates the HTML, I'd much prefer to hand code it as you know exactly what code you have. Not only that hand coding helps you to really understand what you're working with IMO. Quote:
Code:
bodyRegards, LC. |
Hi
Thanks for your help, I have managed to sort out the container issue, now the page footer is displaying correctly. I still have a problem with creating files from this template. When I try, the error message reads........ "There is an error at line 185, column 13 (absoloute position4245) of (...file location and name.....) : Unbalanced #EndEditable tag." I have tried to check the editable tags opening and closing, but I can't see the error. Any ideas? |
Your div with class "content" is unclosed, according to the code in your first post. This may be the problem.
|
always define site ROOT folder
Hard to guess what problem is, but always gather your files together in a folder and SITE>New Site -- define that site root folder and save all your files to that site root folder. Think you should have an index.html page in root folder. I would create and validate sample page before saving as a template ___.dwt file. You then save that template file to the site root folder you defined in the very beginning. Dreamweaver saves that .DWT file in a Template folder it creates.
See screen shot above. One of the many nice features of Dreanweaver is that, when you type lesser-than symbol and slash </ , it completes any open tag that needs closing. This not only saves a bit of extra typing, it shows you what tag needs closing. It's best to work in code pane of SPLIT view or in CODE view. And, obviously, you can write your own code. |
| All times are GMT +1. The time now is 03:32 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.