I can't seem to reference my styles in my css style sheet from my footer.php file.
I am running XAMPP to develop my code locally. My footer.php code looks like this:
<?php
echo '<link href="css/styles.css" rel="stylesheet" type="text/css" />';
?>
I can't seem to reference my styles in my css style sheet from my footer.php file.
I am running XAMPP to develop my code locally. My footer.php code looks like this:
<?php
echo '<link href="css/styles.css" rel="stylesheet" type="text/css" />';
?>
If your application has any URL rewriting on the go, you'll want to make the CSS path relative to the root of the website:
href="/css/styles.css"
Check the network requests to ensure the CSS file can be found.
It seems the issue I had was browser related. When I was accessing my site via localhost/website (xampp) on Google Chrome.. it wouldn't load any new style changes. However, I was able to see the changes immediately within Mozilla Firefox. Not sure why this was an issue.. but at least the issue was solved and the code is OK.