HighDots Forums  

CSS within templates

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS within templates in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SteveKimpton
 
Posts: n/a

Default CSS within templates - 06-30-2008 , 11:51 AM






I have an old site (>250 pages) built using a muddle of DW templates and
libraries. I want to change the general layout and rationalise the templates.
I've done this experimentally using scripts to determine the contents of the
old editable regions and writing the text into a new files with empty editable
regions. Inside the template for these files there is a a link to a css file:

<link href="wp1.css" rel="stylesheet" type="text/css">

Because the files are in multiple folders, the path is wrong but the running
the template page update correctly alters the path, e.g.

<link href="../wp1.css" rel="stylesheet" type="text/css">

This is great and the pages view correctly in a browser but not in DW8 design
view.

If I move the link outside the editable region, all is fine.

Any ideas gratefully received!



Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: CSS within templates - 06-30-2008 , 12:28 PM






You cannot have links to stylesheets within the body of your HTML pages.

If that's not what you have, then we would need to see a page that is not
correctly rendered.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"SteveKimpton" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I have an old site (>250 pages) built using a muddle of DW templates and
libraries. I want to change the general layout and rationalise the
templates.
I've done this experimentally using scripts to determine the contents of
the
old editable regions and writing the text into a new files with empty
editable
regions. Inside the template for these files there is a a link to a css
file:

link href="wp1.css" rel="stylesheet" type="text/css"

Because the files are in multiple folders, the path is wrong but the
running
the template page update correctly alters the path, e.g.

link href="../wp1.css" rel="stylesheet" type="text/css"

This is great and the pages view correctly in a browser but not in DW8
design
view.

If I move the link outside the editable region, all is fine.

Any ideas gratefully received!




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.