CSS is not working in any browser on my PC [closed]

-1

Good evening, I have to do a TCC to finish my course, however 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>

IfIpullitofflinefrommypc,itdoesnotwork:

<!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><scripttype="text/javascript" src="js/materialize.min.js"></script>
    </body>
  </html>

I tested pulling it offline from my school's pc and it worked, I think it should be something on my pc. Anyone have any idea what it would be, could you please help me?

This is not the framework, since I tested Uikit too and it was the same problem.

    
asked by anonymous 02.08.2017 / 01:21

3 answers

0

I managed to solve the problem, I would have to add the 2 points (..) to show that the "css" folder was inside other folders. I'm sorry guys, it was a simple thing, but I was nervous because of TCC pressure kkkkkkkkk

Here's the answer:

<link type="text/css" rel="stylesheet" href="../css/materialize.min.css"  media="screen,projection"/>
    
02.08.2017 / 01:59
1

Check the file / folder permission, you may not have sufficient permission.

In Linux (Debian, Ubuntu, etc.)

Recommended permission for directories (folders) is 755

sudo chmod 755 /nome_da_pasta

Already for files is 644

sudo chmod 644 /nome_do_arquivo
    
02.08.2017 / 01:25
0

It may be that your folder is not giving you access permission. If the address and filename are correct.

Do this, right click on your css folder goes into properties and on the security tab click on "Edit"

Will open a new window, click "Add" type "all" select the "All" user in the list and give an OK. In the bottom boxes activate the "Total Control". Give me an okay and date. Take a test to see.

    
02.08.2017 / 01:30