skip to Main Content

Guys I cannot create a CSS file in VS code. it shows this ‘#’ icon instead of CSS one

enter image description here

I used to create this CSS file without any issue before

2

Answers


  1. the "#" is the basic icon in VSCode to define a css file, did you link your css to your html?

    <link rel="stylesheet" href="./style.css">

    Login or Signup to reply.
  2. It appears that you have successfully created the CSS file in the directory where your index.html is present. Just write the CSS in it and if the styles are not applied then check if you have linked the CSS file correctly to the html or not. With your current setup you can link it with this link tag:

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

    Put this link tag within the head tags

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search