title: PHP include file.php having CSS issues
body: <p>I have a index PHP page where I include all PHP files like <code>index.php?page=example</code>. All pages are in another folder, here is the structure:</p>
  
  <pre><code>public_html/index.php
  public_html/css/style.php
  public_html/pages/
  </code></pre>
  
  <p>Index calls the CSS file from <code>css/style.php</code>.<br>
  Pages are called from <code>index.php</code> like (<code>include pages/example.php</code>) using GET function.</p>
  
  <p>If I run <code>index.php</code> I get no problems with CSS, if I run only the included page like <code>example.php</code> I get CSS problems because the CSS is in <code>index.php</code> and obviously will not show the CSS correct.</p>
  
  <p>But when I run the <code>index.php</code> and include the <code>index.php?page=example</code> then the index CSS show correct but the classes from the included pages does not work...</p>
  
  <p>I suppose the include will only import the code but it seems like something is wrong with the server or I am doing something wrong?</p>
  
  <p>Here is a example code of what I am using. This is index.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
        &lt;link rel="stylesheet" href="css/style.css"&gt; 
    &lt;/head&gt;
    &lt;body&gt;
          &lt;?php 
          include('pages/example.php'); 
          ?&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Index.php all css classes works fine but the style class from the included pages does not work they are just not styled</p>