Jimmy Kwon
Jimmy Kwon

Reputation: 21

sublime text 2 link between html and css, github add-ons

I thought the way to link your html file to your css file is to write:

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

(given my css file name is firststylesheet.css) but when I uploaded the css and html file onto my website, the css file didn't connect, and all the site was reading was my html file. How do I fix this?

Upvotes: 0

Views: 2179

Answers (2)

Emil
Emil

Reputation: 1

I had the same problem, but I noticed that my css, called Stylesheet, missed the ".css". So i manually renamed it stylesheet.css and it worked :)

Upvotes: 0

pichsenmeister
pichsenmeister

Reputation: 2132

'rel' attribute has to be "stylesheet" and not "firststylesheet"

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

Upvotes: 5

Related Questions