Responsive Tables

Sample

Test by opening on mobile or resizing your browser window.

ClassificationTitleDescription
Person
AnthemPatron AI Goddess of Robots and Infomorphs
Conflict
Advent War"In the war between god and Euphraesti, God was a no-show."
Geography
San Joaquin ValleyDustbowl in the dry season, Mudpot in the wet
Language
Sazashi IRPIrish Receieved Pronunciation. The common accent of the Jadey family.
Material
Rutas BioPlasticIn goes algae and methane and out goes plastic.
Myth
A Tale of Better TimesWhat the last generation told itself the world once was.
Organization
This Machine (Band)Actually not so great at killing fascists... until their frontman went solo.
Organization
Aempian Government Would like to remind you that its predecessor was worse.
Profession
Data ArchaeologistFinds and decodes old data to piece together history.
Settlement
New SacramentIt used to be Sacramento.
Settlement
Jadey IrelandThe seat of the Jadey Family's pharma scavenging empire.
Species
Wild Polydactyl Domesticated TigerA delightfully bad idea with hilariously violent ends.
Technology
Sophontic CloningRarely humane or practical.
Tradition
Advent DayA celebration of First Contact. Always a good excuse for food.
Tradition
Filial ConscriptionRich kids always get the easy work.
 

Why yes those are some of my planned Summercamp Articles, Would you like to know more?

 

Solution

Copy the below CSS into your Styling Panel. You will have to replace these red characters — — for it to work. Show me if you do something cool.

media max-width: 1000px {
table thead,
table tbody,
table th,
table td {
display: block;
}
table {
width: 100%;
border-collapse: collapse;
overflow-x: auto;
display: flex;
flex-direction: column;
td,
th {
flex: 1;
position: relative;
text-align: center;
width: 100% !important;
box-sizing: border-box;
border-bottom: 1px dotted #888 !important;
}
tr {
display: flex;
flex-direction: column;
border: 1px solid var --defaultBorderColor ;
margin: 20px;
border-radius: 5px;
overflow: hidden;
}
}
}

Comments

Please Login in order to comment!
Jun 12, 2024 11:09 by Dr Emily Vair-Turnbull

Thank you for this <3

Jun 12, 2024 17:40 by Ademal

And thank you, I live for comments!

CSS Whisperer • Community Admin • Author of Ethnis
Jun 13, 2024 01:40 by Owen Davies

Amazing! So useful!

"The world is only as big as one makes it. So make it bigger by expanding your mind."   Nonvyrox A fantasy setting scarred by a divine war.   Checkout what I've written for Summer Camp 2024
Jul 3, 2024 01:25 by spleen

Thank you for sharing this! Time to implement it in all of my worlds lol

Have a wonderful day!
Aug 4, 2024 18:15 by Amélie I. S. Debruyne

Thanks for sharing this! I've ended up making use of it during SC :D

To see what I am up to: my Summer Camp 2024.
Powered by World Anvil