PDF file not applying css styles
-
I can’t get it to apply the CSS styles on the PDF document. Readed the mpdf css and html support and changed all my hex code to rgb, all is ok from my point of view. HTML seems ok but it doesn’t apply css styles.
The code that I insert on the PDF Message Body is (tried with <style> and inline css:
<style type="text/css"> .tg {border-collapse:collapse;border-spacing:0;} .tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px; overflow:hidden;padding:10px 5px;word-break:normal;} .tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px; font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;} .tg .tg-3aam{background: rgba(235, 206, 206, 1);border-color:rgb(0, 0, 0);color:rgb(51, 51, 51);font-weight:bold;text-align:left;vertical-align:top} .tg .tg-f5i8{background: rgb(146, 24, 58);border-color:rgb(0, 0, 0);color:rgb(255, 255, 255);font-size:16px;font-weight:bold;text-align:center; vertical-align:top} .tg .tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top} </style> <br /> <table class="tg" style="undefined;table-layout: fixed; width: 442px"> <colgroup> <col style="width: 222px"> <col style="width: 385px"> </colgroup> <thead> <tr> <th class="tg-f5i8" colspan="2"><strong>NUEVA BECA SOLICITADA</strong></th> </tr> </thead> <tbody> <tr> <td class="tg-3aam">Nombre y apellidos</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[nombre-apellidos]</td> </tr> <tr> <td class="tg-3aam">DNI</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[DNI]</td> </tr> <tr> <td class="tg-3aam">Edad</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[edad]</td> </tr> <tr> <td class="tg-3aam">Teléfono</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[telefono]</td> </tr> <tr> <td class="tg-3aam">Correo electrónico</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[correo-electronico]</td> </tr> <tr> <td class="tg-3aam">Antiguo residente</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[antiguo-residente]</td> </tr> <tr> <td class="tg-3aam">Titulacion académica</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[titulacion-academica]</td> </tr> <tr> <td class="tg-3aam">Universidad de procedencia</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[universidad-procedencia]</td> </tr> <tr> <td class="tg-3aam">A?o de finalización de estudios</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[finalizacion-estudios]</td> </tr> <tr> <td class="tg-3aam">Beca solicitada</td> <td style=".tg-fxei{background: rgb(255, 255, 255);border-color:rgb(0, 0, 0);color:rgb(0, 0, 0);text-align:center;vertical-align:top">[beca-solicitada]</td> </tr> </tbody> </table> <br /> <div style="margin-top: 15px;"><a href="https://docs.google.com/spreadsheets/d/1R8s8m3sh7Dx52vuFRAyD8w1wC981Q7_o4HBLI9eM8TA/edit#gid=371672101" title="Ver hoja Excel de inscripciones">Ver hoja excel de inscripciones</a></div>
What can I do? Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PDF file not applying css styles’ is closed to new replies.