bradgrafelman;10915539 wrote:At present, no; the code in your header file is href="style_1.css" which matches neither of the two paths I noted above.
You're not answering my question and helping me to learn. Blah!! :p
Okay smarty pants, I finally figured out the CORRECT answer all by myself after two days of no progress.
In the includes folder are:
0302_Header.html
style_1.css
SCENARIO #1:
If 0302_Header.html says:
<head>
<link rel="stylesheet" href="style_1.css"
type="text/css" media="screen" />
</head>
and I launch it in NetBeans, then 0302_Header.html is formatted correctly.
If I then launch 0304_Index.php which is one level up, then it runs but without formatting.
SCENARIO #2:
If 0302_Header.html says:
<head>
<link rel="stylesheet" href="includes/style_1.css"
type="text/css" media="screen" />
</head>
and I launch it in NetBeans, then 0302_Header.html is NOT formatted correctly.
If I then launch 0304_Index.php - which is one level up - it IS formatted correctly.
SOLUTION:
This where the confusion lies...
You would think that if 0302_Header.html correctly points to style_1.css, that when 0304_Index.php includes 0302_Header.html that it would "inherit" the style sheet formatting?!
Apparently the way it works, however, is that my CSS style sheet has to point directly to 0304_Index.php in order to work?!
I'm not sure why this is, because all other formatting is "inherited" when you include 0302_Header.html, but this must just be a quirk of the three languages?!
So TV viewers, THAT is the correctly solution and explaination to this subtle yet tricky thingy!
**NOTE: In addition, this is how my PHP book had it, and this is how I had it last night and it wasn't working then?! I suspect that there was also a browser caching issue that was throwing me off course and making debugging infinitely difficult since sometimes things worked and then they stopped working?! Oy vey!!
Thanks anywho,
Amy
🙂