Creating a "table"
with bootstrap cards, fetching data through $smarty
.
When the viewport
shrinks, I want to collapse the table into 2 columns.
The left column should have headers like: name, date, age. The corresponding right column should display the data inline like: Fred, 12.12.2012, 41.
I tried using Bootstrap's responsive feature in cards, but it collapsed everything into one column when the viewport
was small. Even jquery.basictable.min.js
did not work as expected.
A simple graphic of the desired layout:
name | stewie
date | 124214
age | 9000
name | bob
date | 45845
age | 65
Link to the desired result:
I believe CSS might be able to achieve what I need, but I'm having trouble finding relevant information.