title: dompdf styles not working in server
body: <p>I use dompdf library with codeigniter to generate report as html. In this case pdf is generate in local machine. But when i upload same code to the server machine styles is not working. But i check the related html page. It is showing with styles. </p>
  
  <p>This is my library file. </p>
  
  <pre><code>&lt;?php
  
  require_once(dirname(__FILE__) . '/dompdf/dompdf_config.inc.php');
  
  class pdf extends DOMPDF
  {
  
      private $html = '';
  
      protected function ci()
      {
          return get_instance();
      }
  
      public function load_view($view, $data = array())
      {
          $this-&gt;html .= $this-&gt;ci()-&gt;load-&gt;view($view, $data, TRUE);
      }
  
      public function render($file)
      {
          // echo $this-&gt;html; die;
          $this-&gt;load_html($this-&gt;html);
          parent::render();
          $this-&gt;stream($file);
      }
  }
  </code></pre>
  
  <p>I try check html after remove comment of <code>echo $this-&gt;html; die;</code></p>
  
  <p>This is my action</p>
  
  <pre><code>public function download()
  {
      $this-&gt;load-&gt;library('pdf');
  
      $this-&gt;pdf-&gt;load_view('pdf/header');
      $this-&gt;pdf-&gt;load_view('pdf/test');
      $this-&gt;pdf-&gt;load_view('pdf/footer');
  
      $this-&gt;pdf-&gt;render('ttt.pdf');
  }
  </code></pre>
  
  <p>And views</p>
  
  <p>pdf/header</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;dddd&lt;/title&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
          &lt;link href="&lt;?php print base_url(); ?&gt;css/pdf.css" rel="stylesheet" media="screen"&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="container"&gt;
              &lt;div id="header"&gt;
                  &lt;a href="&lt;?php print base_url(); ?&gt;"&gt;
                      &lt;h2&gt;ddddd&lt;/h2&gt;
                  &lt;/a&gt;
              &lt;/div&gt;
              &lt;div id="main"&gt;
  </code></pre>
  
  <p>pdf/test</p>
  
  <pre><code>&lt;h3&gt;SECTION 17 APPLICATION&lt;/h3&gt;
  &lt;h4&gt;1) Particulars of Investors&lt;/h4&gt;
  &lt;table class="table table-bordered"&gt;
      &lt;thead&gt;      
          &lt;tr&gt;
              &lt;th&gt;&lt;/th&gt;
              &lt;th&gt;US $ Min&lt;/th&gt;
              &lt;th&gt;%&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;a) Name :- &lt;/td&gt;
              &lt;td&gt;tttttt&lt;/td&gt;
              &lt;td&gt;dfsdfsdf&lt;/td&gt;            
          &lt;/tr&gt;      
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>pdf/footer</p>
  
  <pre><code>        &lt;/div&gt;
          &lt;footer&gt;
              &amp;copy; &lt;?php print date('Y'); ?&gt; ddddd. All Rights Reserved
          &lt;/footer&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>