1
Sirs,
I made a table in bootstrap, but I want to decrease the height of the line, It is possible to change directly from the table or I need to adjust in bootstrap.css?
<table class="table table-striped table-hover table-bordered " >
<thead>
<tr style="background-color: #CEF6EC">
<th>ID</th>
<th>Nome Fornecedor</th>
<th class="d-none d-sm-table-cell">Contato</th>
<th class="d-none d-lg-table-cell">Telefone</th>
<th width="100" class="text-center">Ações</th>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT id,nome,con,tel FROM cad_for WHERE del <> '1'";
$sql = $pdo->query($sql);
If($sql->rowCount()>0){
foreach($sql->fetchAll() as $fornecedor){
?>
<tr>
<td><?php echo $fornecedor['id']; ?></td>
<td><?php echo $fornecedor['nome']; ?></td>
<td class="d-none d-sm-table-cell"><?php echo $fornecedor['con']; ?></td>
<td class="d-none d-lg-table-cell"><?php echo $fornecedor['tel']; ?></td>
<td>
<a href="cad_for_vis.php?id=<?php echo $fornecedor['id']; ?>" class="btn btn-outline-primary btn-sm" data-toggle="tooltip" data-placement="left" title="Visualizar"><i class="fas fa-eye"></i></a>
<a href="cad_for_edi.php?id=<?php echo $fornecedor['id']; ?>" class="btn btn-outline-warning btn-sm" data-toggle="tooltip" data-placement="left" title="Editar cadastro"><i class="fa fa-fw fa-edit"></i></a>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
If you can post a snippet of the code, it helps to visualize the problem
– Gabriel Gonçalves
It depends a lot on the CSS and HTML you have in it. It may be that these buttons in the last column are "sending" at line height. You would want to see the code.
– Sam
Inform which version of Bootstrap you are using also help (it is important)
– Lauro Moraes
Without the substantial part of the code, the Bootstrap version is difficult for anyone to understand...As stated in the second comment can be the buttons. If you go to Bootstrap v4 you can use the class table-Sm which reduces filling by half
– Lauro Moraes
It is made in bootstrap 4.
– Fábio
I put the code of the table
– Fábio