Include css stylesheet in electron app

Viewed 20950

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.

2 Answers

The GitHub "blob" urls are webpages showing your file. Not the file itself. So you need to use the "raw" url or something like jsDelivr.

Related