Discussion:
CSS styles not showing up in design view
(too old to reply)
dmb005
2003-09-12 20:20:31 UTC
Permalink
I'm wondering if anybody can tell me why my CSS styles are not showing up in the document window in design view.

I am working on pages that were built using Templates. Each Template is attached to an external style sheet that is saved in the root folder (top level) of the site. When I open up an actual Template, the styles show up properly in the document window in design view.

But when I create a new page from a Template, the styles do not show up at all in the document window. However, I can apply styles to the text and they do show up properly when I preview the page in my browser.

I know there's an issue with styles not showing up in the document window if the style sheet is saved in another directory. But that's not the case here.

Also, and I don't know if this is a related issue or not -- but I'm having a strange problem with various commands not working when I'm in design view. And this just cropped up recently. I can no longer copy, cut or paste in design view. I have to switch over to code view to do that. And I can no longer use Shift-Return to insert a line break <br> when I'm in code view. In fact, I can't insert a mailto link in design view.

For the record, I am using Dreamweaver MX 6.1 on a PC running Windows XP.

Can anybody help? Do you need more information from me? I bet these are two separate issues. But I'm including both in this posting since they appeared at the same time.

Thanks.
WestSide
2003-09-12 20:33:18 UTC
Permalink
hi,

For your CSS issue..

I would search the DW Help for "Design-Time style sheets"

There is a feature that allows you to view the css in design time... ...

When you view the page in a browser... does is the css applied?

If not, then maybe its another issue (perhaps the style sheet is not linked to the document correctly if at all)

First try the design-time style sheets...

HTH

WEstSide
dmb005
2003-09-12 21:51:51 UTC
Permalink
What's really odd to me is the fact that I've been working on this site for months using Dreamweaver MX and have not had this problem.

We recently re-launched our site and made a bunch of changes to the directory structure, and that leads me to think that we messed something up in the process. But I can't, for the life of me, see what's different now than before in terms of the style sheet.

Again, the style sheet appears to be properly attached to my page, I can apply styles and see them when I preview the page in my browser, but I just can't see the styles as I'm working in design view.

Taking the extra step of attaching the style sheet in Design Time has not helped (and I never had to do that before to get the styles to show up properly in design view).

Another thing that I find odd is that when I open the actual Template (which is attached to my external style sheet), the styles show up just fine in design view. It's only when I create a page from that Template that the styles don't show up in design view.
DiMa
2003-09-12 22:42:38 UTC
Permalink
Just a guess, but...
1. Is your template file still in the default Templates folder (spelled exactly
like that)
2. Is the Templates folder in the default place in the root of the site?
3. Are there any files in the Template folder which don't have a .dwt
extension?

--
--
DiMa
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to your
posts:
news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamweaver
http://www.macromedia.com/support/dreamweaver/technotes.html
http://www.projectseven.com/faqbase
http://www.dreamweaverFAQ.com

http://www.macromedia.com/support/forums/etiquette.htm

www.flyingtigerwebdesign dot com
Post by dmb005
What's really odd to me is the fact that I've been working on this site for
months using Dreamweaver MX and have not had this problem.
Post by dmb005
We recently re-launched our site and made a bunch of changes to the directory
structure, and that leads me to think that we messed something up in the
process. But I can't, for the life of me, see what's different now than before
in terms of the style sheet.
Post by dmb005
Again, the style sheet appears to be properly attached to my page, I can
apply styles and see them when I preview the page in my browser, but I just
can't see the styles as I'm working in design view.
Post by dmb005
Taking the extra step of attaching the style sheet in Design Time has not
helped (and I never had to do that before to get the styles to show up properly
in design view).
Post by dmb005
Another thing that I find odd is that when I open the actual Template (which
is attached to my external style sheet), the styles show up just fine in design
view. It's only when I create a page from that Template that the styles don't
show up in design view.
DiMa
2003-09-12 23:29:32 UTC
Permalink
What is the path to your style sheet w/in the template itself and what is it in
the child page?

--
--
DiMa
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to your
posts:
news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamweaver
http://www.macromedia.com/support/dreamweaver/technotes.html
http://www.projectseven.com/faqbase
http://www.dreamweaverFAQ.com

http://www.macromedia.com/support/forums/etiquette.htm

www.flyingtigerwebdesign dot com
Thanks DiMa.
1. All of my template files are in the default folder Templates
2. The Templates folder is in the default place at the root of the site
3. All of my template files have the .dwt extension
Does anybody have any other thoughts?!!
WestSide
2003-09-12 21:43:03 UTC
Permalink
Yah... I think you have to do it manually..

In DW MX 2004, perhaps its fixed... who knows.. they say it has better CSS support..
dmb005
2003-09-15 20:09:05 UTC
Permalink
Hi DiMa,

You asked: "What is the path to your style sheet w/in the template itself and what is it in
the child page?"


The path to the style sheet within the template is: "../laccd.css"

The home page to my site (index.htm at the root level) is a child page to the template and has this path: "laccd.css" This page does not have the problem -- the styles show up fine in design view as well as through a browser.

An example of a problem page is the following: In a directory called "classified-jobs" I have a file called index.htm which is a child to the template. The path the style sheet in this file is "../laccd.css" This looks like the correct path to me. Yet the styles on this page do not show up in design view. They do show up in the browser, though, which also leads me to think the path the the style sheet is correct.


This problem really has me stumped. Any other thoughts?

Thanks!

Continue reading on narkive:
Loading...