dreamweaver help

Leejai

Golden Member
Jul 22, 2001
1,006
0
0
I heard there was a way, but I need to push a stylesheet to the first line of all HTML files in a particular folder using Dreamweaver MX. Someone said this was done. I tried using the search feature to replace, but didn't know how to call out the first line of each html file.

Thanks in advance!
 

Leejai

Golden Member
Jul 22, 2001
1,006
0
0
Thanks notfred, but unfortunately we're not using any header tags. These are simple html documents for our Knowledge Base solutions.
 

WobbleWobble

Diamond Member
Jun 29, 2001
4,867
1
0
The first line should be the DTD or at least the <HTML> tag, not your CSS import. You can easily do it if you used templates, but I don't think you did.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Replace <HTML> with
Originally posted by: notfred


<head>
<style>
@import url('stylesheet.css')
</style>

If this doesn't work, your only option is to format C: .
 

Leejai

Golden Member
Jul 22, 2001
1,006
0
0
Originally posted by: WobbleWobble
The first line should be the DTD or at least the <HTML> tag, not your CSS import. You can easily do it if you used templates, but I don't think you did.

no, we didn't....my company's so cheap they wanted to hire interns to export ~6000 solutions, so they just start w/ the actual text...no tags...is it possible?
 

WobbleWobble

Diamond Member
Jun 29, 2001
4,867
1
0
What I would do is a Search and Replace

Search for </HEAD>

and replace with

<LINK href="stylesheet.css" rel="stylesheet" type="text/css">
</HEAD>