1
My page looks like this:
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12" style="border-style:solid;">
<div style="text-align:center;" class="col-sm-12 col-md-12">
<img style="text-align:center;" src="../uploads/logo.jpg" />
<h4 style="text-align:center;">GUIA DE AGENDAMENTO</h4>
</div>
<div style="text-align:center;" class="col-sm-8 col-md-8">
<p style="text-align:center;">
Data de Atendimento<br/>{{date('d/m/Y', strtotime($marcacao->data))}}<br/><br/>
Profissional<br/>{{$marcacao->agenda->vinculo->profissional->nome}}
</p>
</div>
<div style="text-align:center;" class="col-sm-4 col-md-4">
<p style="text-align:center;">
Horário<br/>{{$marcacao->agenda->horario}}<br/><br/>
Especialidades<br/>{{$marcacao->agenda->vinculo->funcao}}
</p>
</div>
</div>
<div class="col-sm-12 col-md-12" style="border-style:solid;">
<div style="text-align:center;" class="col-sm-12 col-md-12">
<h4 style="text-align:center;">Paciente: {{$marcacao->cidadao->nome}}</h4>
<div style="text-align:center;" class="col-sm-4 col-md-4">
<p style="text-align:center;">
CADSUS<br/>{{$marcacao->cidadao->cns}}
</p>
</div>
<div style="text-align:center;" class="col-sm-4 col-md-4">
<p style="text-align:center;">
Telefone<br/>{{$marcacao->cidadao->telefone}}
</p>
</div>
<div style="text-align:center;" class="col-sm-4 col-md-4">
<p style="text-align:center;">
Data de Nasc:<br/>{{date('d/m/Y', strtotime($marcacao->cidadao->dataNascimento))}}
</p>
</div>
</div>
</div>
It has only the alignments and the widths of the columns. When I see it on the screen, it’s okay, if I send it right to the printer, it ignores the width of the columns. col-md-8
and col-md-4
, feels as if it were col-md-12
.
What to do?
a hint, change the
style="text-align:center"
by bootstrap classtext-center
, is cleaner the code apparently also missing close the div "container"– Alvaro Alves
div is closed in original code. I made the changes and did not solve
– Italo Rodrigo