-1
Good evening, I have to do a TCC to finish my course, but the CSS of my code does not work in any browser. It only works if I pull it online from the cloud:
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/js/materialize.min.js"></script>
If I pull it offline from my pc, it doesn’t work:
<!DOCTYPE html>
<html>
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
</body>
</html>
I tried to pull it offline by my school’s pc and it worked, I think it must be something on my pc. If anyone has any idea what it would be, would you help me please?
Obs: it is not the framework as I have tested Uikit as well and it was the same problem.
I don’t know but try to use only . css instead of .min.css
– user83428
What is the URL that appears in the browser when you open this html in it?
– bfavaretto