asp.net - Why the CSS style is not applied in webpages within subdirectories? -


In the root of my domain I have the CSS file style.css and the mainpage file is

.

The link to the CSS file inside the site

& lt; Link href = "style.css" rel = "text / css" media = "screen" />

The problem is that the web pages contained in sub-directories do not inherit the CSS file.

What am I doing wrong here?

If I copy the style.css file in sub-codes, then everything works like a magic ...

Update: If I change the path of /style.css or ~ / style.css , then the style does not apply to that webpage as root folder .

You must specify the path as /style.css .


Comments