Sublime Forum

Index.html doesn't link to main.css

#1

Hi

I am just started to write a basic html5 file and using css3 with sublime 3 :smile:

The problem is that my mail index.html doesn’t link correctly to my main.css file.

I am on Windows and i have a test folder on destop and inside i have the index.html and the main.css.

On html file i am using this:

Browser tab info here

Heading number 1

And on my main.css i am using this:

h1 {
color: navy;
}

And after saving and refreshing i am getting again the same result :frowning:

I did a few tests but nothing.

Any ideas?

0 Likes

#2

I’m assuming that you mean when you’re viewing the file in a browser the css files is not linking properly.

If so, it sounds like a path issue. If you’re new to development it would be good to familiarize yourself with setting up a development server locally.

If my assumption was wrong, my apologize.

0 Likes