Regina Shepherd Riddle Regina Shepherd Riddle - 2 years ago 73
PHP Question

How do I make my CSS link up to files in different directories

I am trying to organize my files for my website: The file structure is folders: css | fonts | images | includes | Admin | user | Member - the user folder currently contains the index.php and index.html, search.php, etc. The includes contains the forms I'm trying to get to work with my css.

The css file is inside the css folder. I've tried ../css/style.css and I've tried ..css/style.css and I've tried ../../css/style.css. Nothing I do renders my css. Here is a screen shot of my folder set up:


Answer Source

use <link rel="stylesheet" type="text/css" href="../css/web289.css" /> as css link as the name of your css is not style.css

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download