Solution 1 :

To go from about-us.html to style.css:

Use this to go back ../

Try this:

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

Solution 2 :

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" /> 

Problem :

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.

Comments

Comment posted by mplungjan

You mean

Comment posted by stackoverflow.com/questions/4862231/…

Related –

Comment posted by Manas Khandelwal

@AkashKamath What is your CSS file name?

Comment posted by Manas Khandelwal

An what is the CSS folder name, “

Comment posted by Manas Khandelwal

I have updated the code above, copy it and paste it in the head section of your

By