The image below (at the very bottom) is the file structure for the site I’m building, where I can’t connect the CSS file properly.
In directory Public/Admin/ there is a file login.php. From login.php, I use the following function call…
to get the header for the login.php page.
The function it calls in the (Includes/functions.php file) is this
function include_layout_template($template=""){
include(SITE_ROOT.DS.'public'.DS.'layouts'.DS.$template);
}
which gets the admin_header.php file from the LAYOUT directory. I know the admin_header.php is loading properly into the login.php file using this function call because the html of the admin_header.php file is appearing when i load login.php. However, the admin_header.php file also has the link to the main.css file in the StyleSheets directory
<link href="../stylesheets/main.css" media="al" rel="stylesheet" type="text/css"/>
Although, as mentioned, admin_header.php is being incorporated into public/Admin/login.php, the stylesheet is not working.
Looking at the directory structure below, is there something wrong with my link to the stylesheet?

It’s not the relativity of the file location that is your problem. You have
media="al"when it should bemedia="all". This should fix it.