Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML, linking a CSS one level up?

Tags:

html

css

What I mean is: From web/in/in.html I want to use css.css located in web/css/css.css . Is there any way to do it except linking through http://sdlfjsldfk.it/web/css/css.css?

../css/css.css is not working. I'm stuck.

like image 336
Gringoire Avatar asked Mar 24 '11 13:03

Gringoire


1 Answers

you need to go one more level up

../../css/css.css

your first ../ will get you in the map /in but the css is one level up so you do a second ../ and then you will be in the right map. Then you just type the path to the css

you could also do the following

./css/css.css

(./ should normally link to the root, but not sure about that)

like image 147
Christophe Avatar answered Nov 19 '22 04:11

Christophe