i want to convert row and column(it's a x-scrollable table) my solution works at ie11 and chrome but this one doesn't work at ie8 i have to make this work at ie8 but i have no idea how to make it work...
i think i have to replace flex to something..
i googled about it but i couldn't find it...
please teach me how to fix it...:(
table{
display: -webkit-box;
display: -ms-flexbox;
overflow-x: auto;
overflow-y: hidden;
}
tbody
{display:flex}
th,td{display:block}
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML</title>
<style>
table {
width: 100%;
}
table, th, td {
border: 1px solid #bcbcbc;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th>col</th>
<th>col</th>
<th>col</th>
<th>col</th>
</tr>
</thead>
<tbody>
<tr>
<th>row</th>
<td>Dolor</td>
<td>Dolor</td>
<td>Dolor</td>
</tr>
<tr>
<th>row</th>
<td>Dolor</td>
<td>Dolor</td>
<td>Dolor</td>
</tr>
<tr>
<th>row</th>
<td>Dolor</td>
<td>Dolor</td>
<td>Dolor</td>
</tr>
</tbody>
</table>
</body>
</html>
I tried to search and found that CSS only examples use Flex and Grid which is not supported in IE 8 browser.
As a workaround, you can try to use the Javascript code to convert table row to column.
Example:
Output in IE 11 with (IE 8) document mode:
Reference:
JSFiddle example
The IE 8 is too old and out of support scope of Microsoft. If possible then try to use the latest Microsoft browsers. If you have to use the IE browser then at least move to the IE 11 browser.