1
With this HTML I cannot place the buttons below the table. I tried several ways, the current one was another attempt.
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<form style="width:400px; margin: 0 auto;">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Código</th>
<th>Nome</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let operator of dataSource">
<td>{{ operator.operatorId }}</td>
<td>{{ operator.name }}</td>
</tr>
</tbody>
</table>
</form>
</div>
<button type="submit" class="btn btn-primary" >Atualizar</button>
<button type="submit" class="btn btn-primary" >Deletar</button>
</div>
</div>
It’s in because I’ve been running tests and that was the last position. But there’s no form on this table, it was just to test
– pnet
@pnet ever gave an Inspection in the table to check the styles? Something else, vc "printa" this table on the page after it is rendered? Try to get the code the way it appears by giving a Ctrl+U on the page in the Browser, and not the code you have in the.html file etc. Then put the code in the question
– hugocsl
Man, thanks. It was the css of the page:
table {
 width: 60%;
 position: absolute;
 left: 20%;
 top: 15%;
 }

 mat-row:nth-child(even){
 background-color:red;
 }
 
 mat-row:nth-child(odd){
 background-color:yellow;
 }
– pnet
@pnet knew it could be this rss. So much so that he had left the "Tip:" there in the reply. But good that solved, I followed your drama there these days with these table questions and I always suspected that was it, so I had you inspect the element!
– hugocsl