1
Good morning, everyone,
I’m trying to align an image with a table, but I’m not getting it. Can someone help me to identify what’s missing?
Follows code below:
index.html
<section id="view_patient">
<div id="print_boneco">
<h2 id="title_view_patient">
Paciente
<?php while($dado = $name->fetch_array()){ ?>
<?php echo $dado["patient_name"]; ?>
<?php }?>
</h2>
<img src="print-corpo-pain-free.jpg" alt="print-boneco" id="print_boneco_app" width="300" height="500" />
</div>
<div id="table_info">
<table class="table">
<thead>
<tr>
<th scope="col">Nome</th>
<th scope="col">CPF</th>
<th scope="col">E-mail</th>
<th scope="col">telefone</th>
<th scope="col">endereço</th>
</tr>
</thead>
<tbody>
<tr>
<?php while($dado = $consulta->fetch_array()){ ?>
<td><?php echo $dado["patient_name"]; ?></td>
<td><?php echo $dado["patient_cpf"]; ?></td>
<td><?php echo $dado["patient_email"]; ?></td>
<td><?php echo $dado["patient_phone"]; ?></td>
<td><?php echo $dado["patient_address"]; ?></td>
</tr>
<?php }?>
</tbody>
</table>
</div>
</section>
index css.
#view_patient
{
width: 45em;
margin: 0 auto;
}
#table_info
{
display: block;
float: left;
}
#print_boneco
{
display: block;
float: right;
}