htmlcssstackblitz

css styling not being applied


I have the most basic static html/css project, and for some reason I can't get my styles to be applied to my html elements in stackblitz. Here's the project. Could it be that linking the css file with the link tag doesn't work for some reason? Maybe it's not actually in the same directory?

Any help would be appreciated


Solution

  • All the code you have setup works when it is run locally. The problem may be that StackBlitz does not support the linking of CSS files (has not since at least 2017) have a look at the issue here https://github.com/stackblitz/core/issues/133