Sunday, March 28, 2010

Problem with linking CSS to a page...

Hello,

I am working on a site that was designed to load all of the head content into each page dynamically from one shared php file at runtime.

I understand the strategy but the problem is that to use DW's design view features I need to manually link to the css files. So I can delete these links (or comment them out) everytime I am ready to publish but that's inconvenient and I will probably forget to do this.

My question: Is there any harm in having two identical links to external css pages - one which is dynamically generated and one which I dropped onto the page? Also will affect load times (does it have to load the css twice?)

Thanks!

Problem with linking CSS to a page... I am working on a site that was designed to load all of the head content into each page dynamically from one shared php file at runtime.Problem with linking CSS to a page...

Do you have a testing server installed on local computer??XAMP, WAMP or something similar??You'll need that to work in design view and see parsed server-side includes (SSIs) whether they are dynamic %26lt;head%26gt; or inside %26lt;body%26gt; tags.

Building your first Dynamic site in DW (PHP/MySql)
http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html

Nancy O.
Alt-Web Design %26amp; Publishing
Web | Graphics | Print | Media?Specialistshttp://www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Thanks. I still don't totally understand how DW interacts with MAMP. I am running MAMP and when I go to localhost in my browser I see the page rendered correctly. However in design view of DW, I still have to manually attach all the CSS to see the elements styled by the css.

I should mention that the testing server I have set up is a remote host that I connect to using FTP.

No comments:

Post a Comment