title: Why does TCPDF ignore my inline CSS?
body: <p>I am trying to create a PDF file using TCPDF. But When I tried to insert inline CSS into the HTML, it's displaying a blank page! Here are a few lines of my HTML:</p>
  
  <pre><code>pdf-&gt;AddPage();
  
  // set font
  $pdf-&gt;SetFont('helvetica', 'B', 20);
  
  $pdf-&gt;Write(0, 'Example of HTML Justification', '', 0, 'L', true, 0, false, false, 0);
  
  // create some HTML content
  $html = '
  &lt;div id="wrapper" style="width:900px;height:auto;margin:0 auto;"&gt;
  &lt;div id="header" style="width:900px;height:180px;border-bottom:2px solid #5a5a5a;"&gt;
  &lt;div id="img" style="width:174px;height:87px;position:relative;top:10px;left:350px;"&gt;&lt;img src="Untitled Document_files/logoticket.png" /&gt;&lt;/div&gt;
  &lt;div id="text" style="width:250px;position:relative;left:315px;top:20px;font-family:Arial, Helvetica, sans-serif;font-weight:bold;font-size:14px;"&gt;E-TICKET/RESERVATION VOUCHER&lt;/div&gt;
  &lt;div id="text2" style="width:200px;position:relative;left:345px;top:40px;font-family:Arial, Helvetica, sans-serif;
  font-weight:bold;font-size:12px;"&gt;Visit - www.bookings.7sisters.in&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="mainContent"&gt;
  &lt;div id="icon" style="width:600px;
  height:37px;
  position:relative;
  left:190px;
  top:20px;"&gt;
  &lt;img src="Untitled D.....
  </code></pre>
  
  <p>etc.</p>
  
  <p>I am inserting the code in <a href="http://www.tcpdf.org/examples/example_039.phps" rel="noreferrer">TCPDF example 39</a>. But the output is only the TCPDF logo and the line "Example of HTML Justification". What's the reason? Or it does not support inline CSS?</p>