Hi, this is really frustrating and I cannot seem to find a solution for it. The only thing I can do for now to circumvent the issue is put my css in a “style” element in the “head” portion of the html.
Basically, I have a style.css file that is in the same directory as my index.html. There is no problem I can see in my linking of the css file, however the properties from the css file are not simply not being applied to my html. I have a folder called TwitchJSONAPI which houses both index.html and style.css.
This is my HTML mark up:
<!DOCTYPE html>
<html>
<head>
<title>Using TwitchJSONAPI</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous" />
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/jquery-3.1.1.js"></script>
</head>
<body>
<h2>Hello</h2>
</body>
</html>
And this is my simple CSS to test:
h2 {
font-size: 100px;
}
It simply isn’t working. Am I missing something really obvious? Hope someone can help. Thanks a lot.