0

How to insert css file from different directory

15th Aug 2017, 2:10 AM
Indu Chouhan
Indu Chouhan - avatar
3 Respuestas
+ 1
I think it's <link href="Main.css" rel="stylesheet /> lmk if this doesn't work
15th Aug 2017, 2:34 AM
Jordan Chapman
Jordan Chapman - avatar
0
Use .. like "../css/site.css". Two dots stand for parent directory. Or you can set full path "http://localhost:8080/css/your.css"
15th Aug 2017, 5:10 AM
Roman
Roman - avatar
0
For css file together with html file, located at the same folder <link rel="stylesheet" type="text/css" href="style.css"> For css file located outside of html file (one level up) <link rel="stylesheet" type="text/css" href="../style.css"> For css file in a folder that same location with html file <link rel="stylesheet" type="text/css" href="./css/style.css"> For css file in a folder that located outside of the html file (one level up) <link rel="stylesheet" type="text/css" href="../css/style.css">
15th Aug 2017, 5:12 AM
Calviղ
Calviղ - avatar