- To: "Slug" <slug@xxxxxxxxxxx>
- Subject: [SLUG] Mass converting html to css
- From: "Doug Stalker" <doug@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon Sep 17 21:35:02 2001
I have a large collection of html written with fixed colors that I want to
convert to CSS. The lines that need changing look like this:
<BODY bgcolor="#CCFFFF" text="#000066" link="#006600" vlink="#003300"
alink="#00FF00" >
<TABLE border="0" cellpadding="5" cellspacing="2" width="100%"
bgcolor="#CCFFFF" >
And once changed should look like this:
<link rel="stylesheet" href="../../../style.css" type="text/css"><BODY>
<TABLE border="0" cellpadding="5" cellspacing="2" width="100%">
How can I write a script that will do this automatically?
- Doug