Where did the formatting go?

April 22nd, 2008 · No Comments

Hi,

I made a web page copying your methods for a Robin Eschner page and then saved it as a template including a .dwt suffix. I put it in a template folder. When I opened it to use it to make another page it previews fine, but it opens with all the content, but as though there is no formatting at all. The navigation bar, for example, has returned to a bulleted list. The code is visible, but is not in bold lettering.

Might you have any idea of what I have done wrong?

Thank you, Margaret

Hi Margaret,

It sounds like you’ve somehow broken the link to the style sheet. From what you report, I assume you created an external style sheet and that it’s somehow gotten detached from the pages created from the templates. Templates have special link settings that must adapt to wherever the new page is created.

I suggest you open the template file you’re using to create the new pages. Attach the style sheet to the template (if it’s already there, delete it and reattach it). Save the template and update all of the pages created from it. Then check the page you created to see if the styles are back.

If you get the styles back with your design, all of the formatting should return at once.

If that still doesn’t work, you may have to start reviewing the different style settings one by one to restore them.

I wish you all the best with your Web site,
Janine

Hi Again,

Thank you for responding so quickly. I agree that some how I have broken the connection to the CSS styles. I did not put them in a separate sheet. The CSS styles are internal to the document. I am sending you the code for the template (.dwt) which appears fine and has all styles applied and second the code for a page that I started using the template. In this second batch of code the CSS is lost for some reason.

Thanks for any help you can provide.
Margaret

The problem is not in the details of the CSS, Margaret, but in how they are being displayed when you create new pages.

Make sure that you are not “opening” the template to create new pages, but using the File > New > Create from Template option to create new pages generated from the template.

I also strongly recommend that you save your styles in an external CSS file so that they can be attached to all of the pages created from the template. This will save you having the same list of styles in multiple pages and make it easier and more efficient to add more styles or edit them later.

Hope that helps,
Janine

Still want more? Visit the Dreamweaver Help Center at www.DigitalFamily.com/dreamweaver to find Dreamweaver tips, tricks, and tutorials.

Tags: CSS · Dreamweaver 8 · Dreamweaver CS3 · Dreamweaver MX · Dreamweaver MX 2004

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.