Skip navigation
Currently Being Moderated

CSS not displaying in Dreamweaver Preview (from Template file)

Aug 19, 2012 9:33 AM

Greetings!

 

I created a page in dreamweaver with attached styles which was working just fine. Took the page and turned it into a template - which was also working fine.

 

Then applied the template to a page and styles are not showing at all.

 

Looking at the code my stylesheet is attached properly and uploading the page to a live server, the styles all display fine. It is just Dreamweavers is somehow not rendering the stylesheet.

 

I have double checked and ensured that the rendering of css is turned on. That the media is set to screen etc. Still I cannot get the CSS to render in design view.

 

As a temporary workaround, I can re-attach my stylesheet as a design time stylesheet and it renders just fine.

 

Anyone have any ideas what might be happening here? Is it a Dreamweaver cache issue?

 

Only thing I can think is that I do have some PHP code in the head section, but the page is a PHP page so that should not be an issue?

 

I would appreciate any help or ideas anyone can offer!

 

Thanks,

Martin

 
Replies
  • Currently Being Moderated
    Aug 19, 2012 10:05 AM   in reply to Snarky7D

    Snarky7D wrote:

     

    my stylesheet is attached properly

    Maybe, maybe not.Is your CSS link root relative?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 19, 2012 10:13 AM   in reply to Snarky7D

    We'd need to see your page's code to make any good guesses....

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 19, 2012 1:25 PM   in reply to Snarky7D

    If I paste your code into a new PHP page, replacing the head content with your code, and then I click in the body of the page, when I look at the CSS panel, I see that it recognizes that "text.css" is attached to the page (even though it can't find the file at the linked location).

     

    Message was edited by: Murray *ACP* to correct stylesheet name

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2012 7:12 AM   in reply to Snarky7D

    That would make no difference.  PHP code is long gone by the time the browser gets the page.  All that is delivered to the browser is the HTML, not the PHP.  Now, if you are saying that somehow the link to the stylesheet wound up ABOVE the <html> tag, then yes, that would make a difference....

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2012 8:28 AM   in reply to Snarky7D

    What I am saying is that somehow DW is having a hard time interpreting having PHP code on a template page and when that template is applied to a page, it breaks the html style rendering.

     

    This is surely not my experience, and I work with PHP and DW templates nearly 24x7.  You do need to know that until you SAVE that newly created template child page, your style rendering *will* appear broken, and that's because DW has not yet adjusted the dependent file links because it doesn't know where the page is being saved - is that perhaps your issue?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 18, 2012 8:52 AM   in reply to Snarky7D

    Martin-

    I am suddenly having the exact same issue, styles that displayed on dependent pages yesterday are nolonger displaying today- but the templates render with the styles, and everthing renders correctly in the browser. I cannot find the files that you reference above that fixed the problem. Can anyone help direct me?

    thank you!

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 18, 2012 9:01 AM   in reply to DillonWalshVT

    Hi, and welcome -

     

    Can't help without a link to your broken page ONLINE

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 18, 2012 9:02 AM   in reply to DillonWalshVT

    You need to turn on hidden folders to get into the ones he references.

     

    Do a search in Google for "turn on hidden files and folders for (your OS )"

     

    and you'll get quite a few pages telling you how to do it, if you don't already know. Once they are turned on, you'll be able to follow Snarky7D's reference.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points