mraz
-
Posts
3 -
Joined
-
Last visited
Posts posted by mraz
-
-
That looks good to me. Just to confirm, you're testing index.php and it's including the header file?
Greetings,
Sorry for my late reply! Sorry I made a typo in fist post....off course I ment index.php and yes both header and footer is included and rendered properly in -
http://localhost/myCMS/index.php
I now tried to move just the file style.css to the includes folder and changed to -
<link href="includes/style.css" rel="stylesheet">
And guess what it works....but why on earth does it not work if I want the CSS to be in assets/css/style.css?
So strange...and making me going nuts.
BTW Happy New Year to all!
-
Greetings to all (and especially you Larry)
I'm having difficulties getting the CSS to show and I think there is something wrong with my path to CSS.
I like to have things tidy and pretty so I created a subfolder in my www root called "myCMS".
FileStructure =
myCMS(folder)
index.phpassets(folder)css(folder)style.cssimg(folder)logo.pngincludes(folder)header.htmlfooter.htmlI get the includes to work and they show when rendering index.html but there is no styling...
In header.html I have
<link href="assets/css/style.css" rel="stylesheet">
But my greenhord guess is that the path is wrong??
Ideas why CSS wont show?
Cheers to all
Chapter 3 - Include Multiple Files (Page79)
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted
Hmmm....guess what? Trying to view CSS source with FireFox WebDeveloper plugin gave me a very nice hint..."You do not have permission to access style.css...." Which is strange since I chmoded everything to 777 in frustration.....
Bloody Linux permission denied access to assets folder =) Thanks Ben!
Case Closed! =)