Add CSS to multiple html files -


i have many html files, named index.html being in different subdirectories. these files created software. after these files being created, want add stylesheet of them!

if use search:"<head>" , replace:"<head><link rel='stylesheet' href='/style.css'>" wouldnt work because files need relative paths.

any idea how achieve goal? while iframes oldschool not use css of main page assume.

other ideas?

you use absolute path css-file. doesn't matter they're in different paths:

<link href="/styles/site.css" ... 

now every file styles-folder in root, , file site.css in folder


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -