1
I am unable to align the div’s right into my mpdf report. Below contains the report print and code.
Below the code:
</head>
<style type='text/css'>
.dados_principais {
border: 1px solid black;
border-top: 1px solid black;
border-radius: 0.5em;
margin-left: -1px;
margin-right: -1px;
margin-top: -1px;
}
</style>
</head>
<body>
<div>
<div class='dados_principais' style='text-align: center;margin-top: 4px;border: 1px solid red;background-color:#dcdcdc;'>
<b><span style='font-style: italic; font-family: arial;'>
Teste de robos</span>
</b>
<div>
<div class='dados_principais' style='text-align: left;width:17%; margin-top: -1px;float:left;background-color:#ffffff; '>
<div style='padding-left:3px; float:left; font-size: 9px; '>1º Data</div>
<div style='padding-left:3px;'>
<span >". $data_inicio_ensaio ."<span>
</div>
</div>
<div class='dados_principais' style='width:41%; margin-top: 0px;float:left;background-color:#ffffff;'>
<div style='padding-left:2px; float:left; font-size: 9px;'>Assinatura </div>
<span style='visibility:hidden;' >.<span>
<div class='dados_principais' style='border: 1px solid black;width:41.50%; margin-top: 0px;float:left;background-color:#ffffff;'>
<div style='padding-left:2px; float:left; font-size: 9px;'>Assinatura </div>
<span style='visibility:hidden;'>.<span>
</div>
</div>
<div style='width:100%;text-align: left; margin-top: -1px;border: 1px solid blue;'>
<div class='dados_principais' style='border: 1px solid black;width:17%; margin-top: -1px;float:left;background-color:#ffffff; '>
<div style='padding-left:3px; float:left; font-size: 9px; '>2º Data</div>
<span >". $data_inicio_ensaio2 ."<span>
</div>
<div class='dados_principais' style='width:39%; margin-top: 0px;float:left;background-color:#ffffff;'>
<div style='padding-left:2px; float:left; font-size: 9px;'>Assinatura</div>
<span style='visibility:hidden;' >.<span>
</div>
<div class='dados_principais' style='border: 1px solid black;width:39%; margin-top: 0px;float:left;background-color:#ffffff;'>
<div style='padding-left:2px; float:left; font-size: 9px;'>Assinatura </div>
<span style='visibility:hidden;'>.<span>
</div>
</div>
I need the Divs (the two signature fields) that are next to the "1st Date" field, to be next to the Divs that are on the second line "2nd Date"
Thanks buddy, that’s right, problems with opening and closing tag.
– PauloGalego
@I’m glad it worked out! If my answer helped you in any way consider marking it as Accept, in this icon below the arrows on the left side of my answer :) so the site does not get open questions pending without response accepted.
– hugocsl
True!! It’s marked. Thank you
– PauloGalego