Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

attaching style sheets to whole site

Status
Not open for further replies.

jaffacake2000

Programmer
Mar 26, 2002
4
GB
How do I attach a style sheet to all the .html pages in a website.

(I have 150 pages to attach, and doing it by one-by-one will be slow)
 
Its normally the last thing to go in your header

open a document.
Click on the <> button

Select search/replace. Select replace in entire site

search for </head>

replace with

<link rel=&quot;stylesheet&quot; href=&quot;yourstylesheet.css&quot; type=&quot;text/css&quot;>
</head>

BACKUP YOUR WHOLE SITE FIRST.

 
Find and replace is the key tool...
Make sure you are on the &quot;site&quot; screen
Like nippi said, &quot;Back-Up your site&quot; & select the pull down &quot;entire local site&quot; and copy and paste the code with out the change in the box next to &quot;search for&quot;, also set search for to source code...
In the replace with window paste the same code in and insert the

<link rel=&quot;stylesheet&quot; href=&quot;yourstylesheet.css&quot; type=&quot;text/css&quot;>

part in the code

Then hit find all and replace all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top