I created a style.css file. To include it in a .html file I tried :
<link rel="stylesheet" href="https://github.com/karinakozarova/HealthCalc/blob/master/style.css">
and
<base href="/style.css">
and
<href="/style.css">
None of them seem to work. Any ideas how to add CSS to my app via external file will be appreciated.
ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems.
I think you may be missing a "type" attribute within that link. Try the markup below:
<link rel="stylesheet" type="text/css" href="https://github.com/karinakozarova/HealthCalc/blob/master/style.css">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With