SlideShare a Scribd company logo
Flipping Tables
Displaying Data on Small Screens
Flipping Tables: Displaying Data on Small Screens (2016-08)
Flipping Tables: Displaying Data on Small Screens (2016-08)
Flipping Tables: Displaying Data on Small Screens (2016-08)
Flipping Tables: Displaying Data on Small Screens (2016-08)
Flipping Tables: Displaying Data on Small Screens (2016-08)
Flipping Tables: Displaying Data on Small Screens (2016-08)
Tables
Flipping Tables: Displaying Data on Small Screens (2016-08)
Am I right?
(╯°□°)╯︵ ┻━┻
(╯°□°)╯︵ ┻━┻
• When to use tables
(╯°□°)╯︵ ┻━┻
• When to use tables
• Creating structure with HTML
(╯°□°)╯︵ ┻━┻
• When to use tables
• Creating structure with HTML
• Designing tables
(╯°□°)╯︵ ┻━┻
• When to use tables
• Creating structure with HTML
• Designing tables
• Adding style with CSS
(╯°□°)╯︵ ┻━┻
• When to use tables
• Creating structure with HTML
• Designing tables
• Adding style with CSS
• Adapting tables to small screens
(╯°□°)╯︵ ┻━┻
Flipping Tables: Displaying Data on Small Screens (2016-08)
Flipping Tables: Displaying Data on Small Screens (2016-08)
Flipping Tables: Displaying Data on Small Screens (2016-08)
When to use tables
When to use tables
When to use tables
• Sort
When to use tables
When to use tables
• Sort
• Compare
When to use tables
When to use tables
• Sort
• Compare
• Cross Reference
When to use tables
When to use tables
• Sort
• Compare
• Cross Reference
• Calculations
When to use tables
When to use tables
• Sort
• Compare
• Cross Reference
• Calculations
When to use tables
not
When to use tables
not
<h5>Players:</h5>
<ul>
<li>Daniel Sedin</li>
<li>Henrik Sedin</li>
<li>Jannik Hansen</li>
<li>Bo Horvat</li>
</ul>
When to use tables
not
When to use tables
not
.players {
column-count:2;
}
When to use tables
not
When to use tables
not
/* Nicole Sullivan’s Media Object */
<div class="media">
<div class="img">
<img src="" alt="" />
</div>
<div class="body">
…
</div>
</div>
When to use tables
not
layout
When to use tables
not
Tables Good
• Sort
• Compare
• Cross Reference
• Calculations
layout
Tables Bad
Flipping Tables: Displaying Data on Small Screens (2016-08)
Creating structure with HTML
Creating structure with HTML
<table>
</table>
Creating structure with HTML
Creating structure with HTML
<table>
<caption>…</caption>
</table>
Creating structure with HTML
<table>
</table>
Creating structure with HTML
<table>
<caption>…</caption>
<colgroup>
<col span=“” class=“”>
</colgroup>
</table>
Creating structure with HTML
Creating structure with HTML
<table>
<caption>…</caption>
<colgroup>…</colgroup>
<thead>…</thead>
<tbody>…</tbody>
<tfoot>…</tfoot>
</table>
Flipping Tables: Displaying Data on Small Screens (2016-08)
<a href=“#revenues”>
<tbody id=“revenues”>
Creating structure with HTML
<table>
<caption>…</caption>
<colgroup>…</colgroup>
<thead>…</thead>
<tbody>…</tbody>
<tfoot>…</tfoot>
</table>
Creating structure with HTML
Creating structure with HTML
<tr>
<th scope=“”></th>
<td colspan=“”></td>
<td rowspan=“”></td>
</tr>
Creating structure with HTML
Creating structure with HTML
<th scope=“row”
colspan=“2”>
Team total
</th>
Creating structure with HTML
<table>
<caption>
<colgroup span>
<col />
<thead>
<tbody>
<tr>
<th scope colspan rowspan>
<td colspan rowspan>
<tfoot>
Flipping Tables: Displaying Data on Small Screens (2016-08)
Designing tables
Designing tables
Designing tables
Designing tables
• Provide a caption
Designing tables
• Provide a caption
• Identify columns, rows, and headers
Designing tables
• Provide a caption
• Identify columns, rows, and headers
• Enhance readability
Designing tables
• Provide a caption
• Identify columns, rows, and headers
• Enhance readability
• Group similar data
Designing tables
• Provide a caption
• Identify columns, rows, and headers
• Enhance readability
• Group similar data
• Smart defaults
Designing tables
• Contrast
• Repetition
• Alignment
• Proximity
Designing tables
Designing tables
Designing tables
Designing tables
Designing tables
John Maeda, Designer
“Simplicity is about subtracting the
obvious and adding the meaningful.”
Flipping Tables: Displaying Data on Small Screens (2016-08)
Designing tables
• www.behance.net/gallery/Designing-
Effective-Data-Tables/885004
• understandinggraphics.com/design/
data-table-design/
• www.darkhorseanalytics.com/blog/
clear-off-the-table/
Flipping Tables: Displaying Data on Small Screens (2016-08)
Adding style with CSS
Adding style with CSS
border-collapse:separate;
border-spacing:2px;
Adding style with CSS
border-collapse:separate;
border-spacing:10px;
Adding style with CSS
border-collapse:collapse;
border-spacing:10px;
Adding style with CSS
caption-side:top;
Adding style with CSS
caption-side:top-outside;
Adding style with CSS
caption-side:bottom;
Adding style with CSS
caption-side:right;
Adding style with CSS
caption-side:right;
Adding style with CSS
vertical-align: middle;
Adding style with CSS
.parent{display: table;}
.child{
display: table-cell;
height: 100vh;
vertical-align: middle;
Adding style with CSS
th { }
tbody th { }
tbody th[scope=“row”] { }
th.points { }
Adding style with CSS
colgroup { }
col { }
Adding style with CSS
colgroup { }
col { }
tbody td:nth-child(5){
background-color:#ddd;
}
Adding style with CSS
Adding style with CSS
tr:nth-child(even){
background-color:#ddd;
}
Adding style with CSS
Adding style with CSS
• A note about screen readers
layout
Adding style with CSS
Adding style with CSS
• A note about screen readers
Flipping Tables: Displaying Data on Small Screens (2016-08)
Adapting tables to small screens
Adapting tables to small screens
• Shrink
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
• Shrink
• Linearize or flip (╯°□°)╯︵ ┻━┻
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
• Shrink
• Linearize or flip (╯°□°)╯︵ ┻━┻
• Remove
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
• Shrink
• Linearize or flip (╯°□°)╯︵ ┻━┻
• Remove
• Scroll
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
• Shrink
• Linearize or flip (╯°□°)╯︵ ┻━┻
• Remove
• Scroll
• Replace
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
• Shrink
• Linearize or flip (╯°□°)╯︵ ┻━┻
• Remove
• Scroll
• Replace
• Combo
Adapting tables to small screens
Adapting tables to small screens
Adapting tables to small screens
• Shrink
• Linearize or flip (╯°□°)╯︵ ┻━┻
• Remove
• Scroll
• Replace
• Combo
Flipping Tables: Displaying Data on Small Screens (2016-08)
Case Study
Case Study
Case Study
Case Study
Case Study
Case Study
<thead>
<tr>
<td></td>
<th colspan=“5”>Desktop></th>
<th colspan=“5”>Mobile</th>
</tr>
<tr>
…
Case Study
Case Study
Case Study
Case Study
table,thead,tbody,tr{
display: flex;}
th,td{
display: block;}
Case Study
Case Study
table,thead,tbody,tr,
th, td{
display: block;}
td:nth-child(2):before{
content: ‘ 💻’;}
Case Study
Flipping Tables: Displaying Data on Small Screens (2016-08)
• When to use tables
• Creating structure with HTML
• Designing tables
• Adding style with CSS
• Adapting tables to small screens
(╯°□°)╯︵ ┻━┻
• When to use tables
• Creating structure with HTML
• Designing tables
• Adding style with CSS
• Adapting tables to small screens
(╯°□°)╯︵ ┻━┻
• When to use tables
• Creating structure with HTML
• Designing tables
• Adding style with CSS
• Adapting tables to small screens
(╯°□°)╯︵ ┻━┻
• When to use tables
• Creating structure with HTML
• Designing tables
• Adding style with CSS
• Adapting tables to small screens
(╯°□°)╯︵ ┻━┻
Flipping Tables: Displaying Data on Small Screens (2016-08)
I Like To Make Websites
Everyone Can Use
stephaniehobson.ca
@stephaniehobson
figure {
display: table;
caption-side: bottom;
}
figcaption {
display: table-caption;
}
Adding style with CSS
• nth-child zebra striping
• column styling
• vertical-align, white-space
• :hover highlighting
Designing tables
Designing tables
Case Study
Notes
Creating structure with HTML
<table>
<caption>…</caption>
<colgroup>…</colgroup>
<thead>…</thead>
</table>
Creating structure with HTML
Creating structure with HTML
<table>
<caption>…</caption>
<colgroup>…</colgroup>
<thead>…</thead>
<tbody>…</tbody>
</table>
Creating structure with HTML
Adapting tables to small screens
Flipping Tables: Displaying Data on Small Screens (2016-08)
Adapting tables to small screens

More Related Content

Similar to Flipping Tables: Displaying Data on Small Screens (2016-08) (20)

PPS
Introduction to Bootstrap: Design for Developers
Melvin John
 
KEY
Mastering zen
John Albin Wilkins
 
PDF
CSS workshop @ OutSystems
Ruben Goncalves
 
PDF
Web front end development introduction to html css and javascript
Marc Huang
 
PDF
Dangerous CSS
Mike Wilcox
 
PPTX
Simple Slide Design and Data Visualization Crash Course
Bessie Chu
 
PDF
Cincinnati Tableau User Group - May 2018 - #spanglerlife
Russell Spangler
 
KEY
ARTDM 171, Week 5: CSS
Gilbert Guerrero
 
PPTX
Bootstrap: the full overview
Gill Cleeren
 
PPTX
Develop winning federal_proposals
Regina Lapierre
 
PPTX
Twitter Bootstrap Presentation
Duy Do Phan
 
PPTX
Making Your Site Printable: Booster Conference
Adrian Roselli
 
PPTX
WCBuf: CSS Display Properties versus HTML Semantics
Adrian Roselli
 
PDF
Intro to css & sass
Sean Wolfe
 
PPTX
MS o365 list formatting used in SharePoint Online
pehap
 
PDF
London Tableau User Group November 2017 Presentation - How To Build Tableau T...
Russell Spangler
 
KEY
Refactoring RIA Unleashed 2011
Jesse Warden
 
PDF
Intro to html, css & sass
Sean Wolfe
 
KEY
Modeling Data in MongoDB
lehresman
 
PPTX
Data Modeling on Azure for Analytics
Ike Ellis
 
Introduction to Bootstrap: Design for Developers
Melvin John
 
Mastering zen
John Albin Wilkins
 
CSS workshop @ OutSystems
Ruben Goncalves
 
Web front end development introduction to html css and javascript
Marc Huang
 
Dangerous CSS
Mike Wilcox
 
Simple Slide Design and Data Visualization Crash Course
Bessie Chu
 
Cincinnati Tableau User Group - May 2018 - #spanglerlife
Russell Spangler
 
ARTDM 171, Week 5: CSS
Gilbert Guerrero
 
Bootstrap: the full overview
Gill Cleeren
 
Develop winning federal_proposals
Regina Lapierre
 
Twitter Bootstrap Presentation
Duy Do Phan
 
Making Your Site Printable: Booster Conference
Adrian Roselli
 
WCBuf: CSS Display Properties versus HTML Semantics
Adrian Roselli
 
Intro to css & sass
Sean Wolfe
 
MS o365 list formatting used in SharePoint Online
pehap
 
London Tableau User Group November 2017 Presentation - How To Build Tableau T...
Russell Spangler
 
Refactoring RIA Unleashed 2011
Jesse Warden
 
Intro to html, css & sass
Sean Wolfe
 
Modeling Data in MongoDB
lehresman
 
Data Modeling on Azure for Analytics
Ike Ellis
 

Recently uploaded (20)

PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
Ad

Flipping Tables: Displaying Data on Small Screens (2016-08)