mPDF: Hide Table Row (CSS Display: No) doesn't work. Do you have any suggestions? My code:
<table align="center"> <tr style="display:none;"> <td valign="top" align="left">InfoOption1:</td> <td valign="top" align="left" colspan="2">#InfoOption1</td> </tr>
I feel very messy for posting this proposal, but this is the best I got:
<tr><td>...</td></tr> <div style="display: none;"> <tr><td>...</td></tr> </div>
DIV is the working part. Luckily html validnes for seo is not suitable for mPDF
It works if you enclose the string you want to hide inside the Div. The div will have a class that declares a hidden property.
<div class='hide_this_row'> <tr> <td>...</td> </tr> </div> <!-- CSS file will look like this --> <style> .hide_this_row{ display :none; } </style>