I want to arrange the column tableone by one in a responsive way.
Here is the HTML:
<table>
<tr>
<td>A</td>
<td>B</td>
</tr>
<tr>
<td>A1</td>
<td>B1</td>
</tr>
<tr>
<td>A2</td>
<td>B2</td>
</tr>
<tr>
<td>A...</td>
<td>B...</td>
</tr>
</table>
Run code+---------+-------------+
| A | **B** |
+---------+-------------+
| A1 | **B1** |
+---------+-------------+
| A2 | **B2** |
+---------+-------------+
| A... | **B...** |
+---------+-------------+
to
+-------------+
| A |
+-------------+
| A1 |
+-------------+
| A2 |
+-------------+
| A... |
+-------------+
| **B** |
+-------------+
| **B1** |
+-------------+
| **B2** |
+-------------+
| **B...** |
+-------------+
and it SHOULD BE A TABLE. How can i achieve this?
How to make a media query understandable.
Also jQuery or native CSS will be fine.
mpitz source
share