I have a basic index.html file in a folder, as well as many, many other files. I want them all to use the same CSS file, without having to manually add to every file. I was wondering if you renamed the file index.css or something like that it would automatically load into every HTML file in the folder? Out of curiosity, is there also a Javascript method for this too?
2 Answers
Bad news my friend No. There is no magical tool that will import the CSS into all of your files. You have to do it yourself. Also it's really easy
- Get the CSS file
- Import the CSS File
See it's that easy. Was it so hard to do it?
2 Comments
The Whiz of Oz
Partials to the rescue ;)
Sabrina Jewson
I mostly wanted just to see if it is possible. I'm fine to copy paste, but it would be useful in some cases.
is there also a Javascript method for this too- this would only replace your current problem with a new one: Adding javascript code to every single html fileincludeor doing a bulk search and replace I guess.