Wow! That's gonna take awhile.
Inline CSS usually all goes into the head of the document between style tags
so it's easy to find with each one. However .. you probably have duplicate
styles in your documents and you only want to have each unique style in the
external style sheet one time.
So do this .. start with your front page .. look at the code view and cut
the CSS. Then create a new document and select CSS as the type. Save it
as main.css or whatever you wish to call it and paste your front page style
into that. Then in the CSS Design Panel of DMX, click on the little icon in
the top right corner and find Attach Style Sheet in the dropdown menu.
navigate to the CSS sheet you created and select that. This will put a line
in your head of the page that links the style sheet to the page.
Now you will have to look at all your documents for styles that were not
contained in that page. You don't want duplicates, but you do want to have
every class. You may be able to use Find and Replace to find the styles for
you .. and once you have identified things, you surely could use find and
replace to strip the style tag out of the pages and replace it with the link
ref tag.
Good luck!
--
Nancy Gill
Team Macromedia Volunteer for Dreamweaver MX/UltraDev
http://www.macromedia.com/go/team/
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development
"Loopkit Pro v1.0" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
Any examples of this type of code would be super. From your input, I see
that
it can be done. I have about 50 subfolders in the main folder that all
need to
reference one main CSS file in the main folder itself. |