HighDots Forums  

can this be done?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss can this be done? in the Macromedia Dreamweaver forum.



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

Default can this be done? - 07-17-2003 , 09:32 PM






Is there a quick (easy) way to take an existing page and generate a css page to
replicate the appearance of said page?

--

Harvey Waxman
Harvey Products makers of Dinghy Dogs
The Boater's Best Friend
http://www.dinghydogs.com

Reply With Quote
  #2  
Old   
Alan Ames
 
Posts: n/a

Default Re: can this be done? - 07-17-2003 , 11:33 PM






Do you mean CSS-P using css for positioning to replace tables? i doubt it.

Do you mean CSS for style info, to replace <font> and similar tags?
Yes-Kind of.

There are dedicated CSS editors- like TopStyle and others- that can read and
evaluate a page- and replace font tags with css.

also- there's a program/project called HTMLTidy that can strip font tags and
put in styles. There's an extension for windows/dreamweaver, and a plugin
for bbedit/mac
http://www.macromedia.com/software/dreamweaver/special/extensions/#dmx_tidy
http://tidy.sourceforge.net/

TopStyle works on pages or Sitewide- html tidy will work on pages. You can
batch files thru Tidy- but each file will have it's own set of styles in the
head instead of a single external stylesheet. Tidy is valuable for it's
syntax checking regardless though.

Some folks resort to the brute force method- a Regular Expression find and
replace to strip all font tags- then a basic stylesheet that redefines the
body, p , h ,and td tags to cover 98% of the content- and then looking at
the page to see what exceptions should have other classes applied.

Find: in source: </?font[^>]*>
Replace: leave blank.
Put a checkmark in "use RegExp"
NOTE- if site uses templates or library items- run this search pattern on
the templates and library item first- otherwise dw might hit an endless loop
trying to change a locked area.

Quote:
Is there a quick (easy) way to take an existing page and generate a css page
to
replicate the appearance of said page?
--
Team Macromedia Volunteer for Dreamweaver
Certified Dreamweaver MX Developer



Reply With Quote
  #3  
Old   
Harvey Waxman
 
Posts: n/a

Default Re: can this be done? - 07-18-2003 , 07:19 AM



In article <BB3CE2D9.13DF46%blu (AT) formdude (DOT) com>, Alan Ames <blu (AT) formdude (DOT) com>
wrote:

Quote:
Do you mean CSS-P using css for positioning to replace tables? i doubt it.

Do you mean CSS for style info, to replace <font> and similar tags?
Yes-Kind of.

thanks a lot.

--

Harvey Waxman
Harvey Products makers of Dinghy Dogs(TM)
The Boater's Best Friend
http://www.dinghydogs.com


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 - 2009, Jelsoft Enterprises Ltd.