PHP - Including Files Not accessing Stylec

PHP - Including Files Not accessing Stylec

I'm having a problem with included files accessing the style sheet in my header.php file.&nbsp;<a href="https://i.stack.imgur.com/xUMmY.png" target="_blank"><img src="https://i.stack.imgur.com/xUMmY.png"></a>

I'm having a problem with included files accessing the style sheet in my header.php file. 

I've created a very basic outline, with just a nav element outline, to see if I could get my inclusions working properly. My index.html has two links:

  • one to a page at the root level, test.php
  • a second that is within the includes folder, test2.php.

For whatever reason, my test2.php, although including the header.php element, does not bring in any of the styles. Below is my code from test.php and test2.php, what exactly am I missing?

Test.php

<?php
    include 'includes/header.php';
?>

Test2.php

<?php
    include 'header.php';
?>

Style.css

nav {
    border: 1px solid;
    width: 95%;
    height: 50px;
}

Header.php

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="style/style.css" />
</head>
<body>
    <nav></nav>


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Build a Register & Login Form using PHP, HTML, CSS, Bootstrap and MySQL

In this tutorial you will learn and build a Responsive PHP Registration & Login Form using PHP, HTML, CSS, Bootstrap and MySQL

The Ultimate Guide to Web Development with HTML and CSS

The Ultimate Guide to Web Development with HTML and CSS. Learn Web Development by creating a Blog with HTML and CSS. Make a web applications using HTML5 and CSS3. Create a blog from Scratch.

Animate Any SVG icons with CSS Only | SVG Stroke Animation With Html CSS

Animate Any SVG icons with CSS Only | SVG Stroke Animation With Html CSS