You can create following responsive tables with use of JQuery and CSS in your HTML-5 pages.
This two column table changes to one column table if screen size is less than 750 px. You may change screen width size and style of table as per your wish.
This table is used where column 2 content is not related to Column 1 content. This type of table are being used on various pages of this site including Home Page.
Column 1 | Column 2 |
---|---|
TD 11 | TD 21 |
TD 12 | TD 22 |
TD 13 | TD 23 |
TD 13 | TD 24 |
TD 15 | TD 25 |
This two column table changes to one column table on screen size less than 750 px. You may change screen width size and style of table as per your wish.
This table is used where column 2 content describes / related to content of Column 1 content. On small screen the bottom border of column 1 and top border of column 2 of 'td' and'th' elements are hidden. The text of 'td' elements of column 1 become bold. You may see the working example of this type of table on this page.
Column 1 | Column 2 |
---|---|
TD 11 | TD 21 |
TD 12 | TD 22 |
TD 13 | TD 23 |
TD 13 | TD 24 |
TD 15 | TD 25 |
Col. 1 | Col. 2 + 3 | Col. 4 | Col. 5 + 6 + 7 | Col. 8 | |||
---|---|---|---|---|---|---|---|
Col. 1 | Col. 2 + 3 | Col. 4 | Col. 5 + 6 + 7 | Col. 8 | |||
---|---|---|---|---|---|---|---|
Col. 2 | Col. 3 | Col. 5 | Col. 6 | Col. 7 | |||
TD-11 | TD-12 | TD-13 | TD-14 | TD-15 | TD-16 | TD-17 | TD-18 |
TD-21 | TD-22 | TD-23 | TD-24 | TD-25 | TD-26 | TD-27 | TD-28 |
TD-31 | TD-32 | TD-33 | TD-34 | TD-35 | TD-36 | TD-37 | TD-38 |
TD-41 | TD-42 | TD-43 | TD-44 | TD-45 | TD-46 | TD-47 | TD-48 |
TD-51 | TD-52 | TD-53 | TD-54 | TD-55 | TD-56 | TD-57 | TD-58 |