I have the following:
my app.css
.fijar-headcol {
position: absolute;
background-color: white;
display: flex !important;
width:100px;
}
my index.html
<div style="height:500px; overflow: auto;">
<tr ng-repeat="dat in datos">
<td class="fijar-headcol">{{dat.title}}</td>
<td>{{dat.dato1}}</td>
<td>{{dat.dato2}}</td>
<td>{{dat.dato3}}</td>
<td>....</td>
</tr>
</div>
The problem is that the td that contains data 1, does not exit because it is covering the first td that contains the title
Here's the example:
.fijar-headcol {
position: absolute;
background-color: white;
/* Centramos */
display: flex !important;
/* justify-content: center; */
/* align-items: center; */
width:100px;
}
<div style="height:500px; overflow: auto;">
<table class="table">
<tr>
<td class="fijar-headcol">dat.title</td>
<td>dat.dato1</td>
<td>dat.dato2</td>
<td>dat.dato3</td>
<td>dat.dato1</td>
<td>dat.dato2</td>
<td>dat.dato3</td>
<td>....</td>
<td>dat.dato1</td>
<td>dat.dato2</td>
<td>dat.dato3</td>
<td>dat.dato1</td>
<td>dat.dato2</td>
<td>dat.dato3</td>
<td>dat.dato1</td>
<td>dat.dato2</td>
<td>dat.dato3</td>
<td>....</td>
</tr>
</table>
</div>