2
I have a table with several columns and I need the first column to be fixed on the table. However, all the "ready" solutions I found create two tables, which is inaccessible.
I need the result exactly like this plugin http://www.michaelkeck.de/projects/jquery/tinytbl/ does. However, without creating a new HTML structure, let alone divide the content into two tables, which makes everything inaccessible.
I have also tried using position:Bsolute in the first column, but then the height of the lines is not equal.
Has anyone ever had that need or needed anything like it?
Table is a normal table:
<table>
<thead>
<tr>
<th>Aluno</th>
<th>Aula 1</th>
<th>Aula 2</th>
<th>Aula 3</th>
<th>Aula 4</th>
<th>Aula 5</th>
<th>Aula 6</th>
<th>...</th>
</tr>
</thead>
<tbody>
<tr>
<td>Fábio Rocha</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
</tbody>
</table>
Can you post your code? I think it’s better to understand
– Leonardo
Old man, put a fiddle for us to see: http://jsfiddle.net
– Vinicius Lima
It is a normal table. I updated the question with the code. I just need the FIRST column to be fixed, because I will have around 25 columns.
– Fábio Rocha
You can use a DIV (position: Absolute) instead of the TH tag.
– user622
I cannot break the semantics of the table, @Gabrielsantos. I need to maintain the web standard and accessibility.
– Fábio Rocha