I try to show a scrollbar in my table if the value of the cell is too long, i tried it with overflow
but as you can see it does not work, there is no scrollbar, the word is displayed in it's full length
table {
border: 1px solid black;
}
table td {
border: 1px solid black;
}
table th {
border: 1px solid black;
}
.test {
overflow: scroll;
color: red;
max-width: 50px;
}
<table>
<tr>
<th class="test">Filename</th>
<th>value</th>
</tr>
<tr>
<td class="test">Very long filename for demonstration</td>
<td>Test</td>
</tr>
</table>
UPDATE:
I just noticed that the scrollbars are showing if i am using Chrome Browser, but not if i use Firefox. So unfortunatelly overflow
does not seem to be compatible with firefox.