-1

My css file is not working. I store my css file public_html/css/main.css. But it's not working. Where should i put this?

Shuvo
  • 273
  • 2
  • 7
  • 23

2 Answers2

0

Look in your index.html file for the line:

<head>
      <link rel="stylesheet" type="text/css" href="FILENAME.css">
</head>

The href is the link to the .css file. Make sure the path is correct.

0

You need to call your css inside <head> tag and specify the path. Maybe you can put the css inside public/css directory. Your link should look like below:

<head>
   <link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
claudios
  • 6,588
  • 8
  • 47
  • 90