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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applying a CSS to an entire site 1

Status
Not open for further replies.

marknel

Technical User
Apr 8, 2002
6
US
I guess I actually have 2 questions, both relating to CSS.

I actually have read through the help and I have done a search on this forum first before posting this.

1. I would like to have a particular CSS (call it main.css) automatically applied to all new html documents that I create. Can this be done?

2. I have a site created and there are 26 pages that do not have this main.css attached to them but I would like it to be. Is there away I can select all the html files and then apply the main.css to them in one fell swoop rather than opening each one and linking it?


Thank you in advance!

Mark
 
depends on the CSS and what it is decorating....but u can always use "find-repleace code in the whole site" function
Edit-->FInd and Repleace...
search for
Code:
eg.
[b]<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>[/b]
and replace with:
[b]
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<link href=&quot;CSS/my.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;>
[/b]

in the entire site......
the came concept goes where u want to apply the CSS to certian setions (<td>, text, etc.)

All the best!


> need more info? 
:: don't click HERE ::
 
Thanks for the reply!

Actually the CSS is very basic.
Just sets the background and certain text styles.

I'll give the above a shot!

Thanks again.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top