To go from about-us.html
to style.css
:
Use this to go back ../
Try this:
<link href="../css/style.css" rel="stylesheet" />
To go from about-us.html
to style.css
:
Use this to go back ../
Try this:
<link href="../css/style.css" rel="stylesheet" />
You mean
<link href="../Css/a.Style.css" rel="stylesheet" />
in a.about-us.html and
<link href="Css/a.Style.css" rel="stylesheet" />
in index.html
You can do absolute in both html files:
<link href="/Pages/Css/a.Style.css" rel="stylesheet" />
or if Pages is the root folder:
<link href="/Css/a.Style.css" rel="stylesheet" />
How to go back to the directory in html. Firstly I will show by folders.
My website
├ Pages (folder name)
│ └ about-us.html
├ Css (folder name)
│ └ Style.css
└ index.html
Let us assume that we are working on about-us.html. Now I want to connect style.css to about-us.html. If anyone know the answer thanks in advance.
You mean
Related –
@AkashKamath What is your CSS file name?
An what is the CSS folder name, “
I have updated the code above, copy it and paste it in the head section of your