View Full Version : Page not loading style sheet
01-03-2007, 04:15 PM
So I've decided to re design my website. Cause its absolutely horrible. I got a CSS template which is found here:
For whatever reason the stylesheet is not being loaded, I cant figure out why.
I know this will be one of those stupid answers that I should be able to get by myself but for whatever reason I cant this morning lol.
01-03-2007, 04:46 PM
Your style sheet file is actually one folder below the current folder "test".
Try changing ./style.css to ../style.css in the <link tag.
01-03-2007, 05:18 PM
Actually I have .htaccess set to read:
Its in the same directory.
01-03-2007, 05:34 PM
The URL of the page in the browser is - http://hugelaughs.com/newsite/test/
The browser then takes this along with the href="..." information to form the URL where it fetches the external css file from. If the href is relative, the browser just appends it to the end of the URL for the current page -
./style.css gives - http://hugelaughs.com/newsite/test/style.css
../style.css would give http://hugelaughs.com/newsite/style.css
Edit: An alternative, if your files reference an external css from different url-paths, would be to use an absolute URL in the href="..."
01-03-2007, 11:23 PM
Ah okay, that makes sense. It worked. Thanks a lot.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.