Copy link to clipboard
Copied
I have a defined site. When I open pages in live view the css styles are not rendered. The site is built with a single .dwt file, which renders css correctly when I open it.
What the heck am I doing wrong?
1 Correct answer
Well, I figured out how to fix it. I opened the template and made a change to an editable region. Then I saved the template and updated all the files. Those file paths with the ../ are all corrected now. It would be nice to figure out what I did to cause this to happen.
Copy link to clipboard
Copied
Design view was coded in an era BC (Before CSS) and as such it can only be of assistance when locating/writing text when the text is hard to find in Code view.
To see the site working in Dreamweaver, switch to Live view.
Edit: Your other post was deleted because it duplicates this post.
Copy link to clipboard
Copied
My mistake for calling it design view. Old habits die hard.
I am in live view. So I'm not sure what I'm doing wrong. Here's a screenshot of a page:
Here's a screenshot of the .dwt:
Copy link to clipboard
Copied
It looks like the links in the finished page have not been translated correctly. Are you working in a defined site? See How to set up a testing server in Dreamweaver
Edit: I love your cars! Here's my extramarital love.
Copy link to clipboard
Copied
Yes, I am working in a defined site. Ahhh! Very cool Mercedes!!!
Copy link to clipboard
Copied
Do I need a testing server if I have an actual server connected? My machine is on its last legs and I really don't want to install anything else on it right now. The above shot was from a copy of my live site, as I am creating another site using that as a template. Here is the original site with a defined site / server set up. It still has the same problem. I re-opened the file index.html in the original site, just fyi...
Copy link to clipboard
Copied
When I see
it points to the links not having been updated when you create the page from the template. The same has undoubtedly happen to the links to your style sheets and javascript. You could go into Code view and change the links to suit, this means removing ../ from the links. An easy task when using find and replace.
Copy link to clipboard
Copied
This may help How to design web pages based on Dreamweaver templates
Copy link to clipboard
Copied
Hmmm, when I create a new page from the template, everything displays correctly.
Copy link to clipboard
Copied
Well, I figured out how to fix it. I opened the template and made a change to an editable region. Then I saved the template and updated all the files. Those file paths with the ../ are all corrected now. It would be nice to figure out what I did to cause this to happen.

