Ash Gharibyan
Ash Gharibyan

Reputation: 141

local css stylesheet not linking

I'm trying to add my .css file, but it is not working and not applying.

But when I put the same style code in HTML it works, so the problem is links, but I think I am doing it right. enter image description here

I have also tried putting <link rel="stylesheet" href="style.css"> but I know I gotta put the folder names too, so both don't work.

Also, something was wrong with linking, because I tried putting in <img> and it still wouldn't link or show but when I tried online image, it would link.

Upvotes: 2

Views: 91

Answers (2)

Piyumi
Piyumi

Reputation: 76

change the 9th line as <link rel="stylesheet" href="../static/style.css">

because u need to go back from dashboard.html use"../" Then goes to the stylesheet file as "static/style.css"

Upvotes: 2

Mani Kandan
Mani Kandan

Reputation: 13

Path should be ../static/style.css in href attribute

Upvotes: 0

Related Questions