Un-doing tables
How do I make an un-doing tables?
A simple take on un-doing tables. Most of the SASS stuff is just there to make it look nice. The meat is at the bottom. This technique has been put to use by NPR, BBC, and LivingSocial to name a few.. What is a un-doing tables? How do you make a un-doing tables? This script and codes were developed by Aaron Gustafson on 22 July 2022, Friday.
Un-doing tables - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Un-doing tables</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <table> <thead> <tr> <th scope="col">Name</th> <th scope="col">Email</th> <th scope="col">Dept, Title</th> <th scope="col">Phone</th> </tr> </thead> <tbody> <tr class="vcard"> <th scope="row" class="n" data-title="Name"> <b class="family-name">Smith</b>, <b class="given-name">Laura</b> </th> <td data-title="Email"><a class="email" href="mailto:[email protected]">[email protected]</a></td> <td data-title="Dept, Title"> Biology, Director</td> <td class="tel" data-title="Phone"> <a href="tel:+1123456789">123-456-789</a></td> </tr> <tr class="vcard"> <th scope="row" class="n" data-title="Name"> <b class="family-name">Johnson</b>, <b class="given-name">Ron</b> </th> <td data-title="Email"><a class="email" href="mailto:[email protected]">[email protected]</a></td> <td data-title="Dept, Title"> Purchasing, Director</td> <td class="tel" data-title="Phone"> <a href="tel:+11234567891">123-456-7891</a></td> </tr> </tbody>
</table>
</body>
</html>
Un-doing tables - Script Codes CSS Codes
@charset "UTF-8";
body { padding: 1em;
}
table { border-style: none; border-top-width: 0; width: auto;
}
table tr { border-style: none; border-bottom-width: 0;
}
table th, table td { border-style: none; padding-right: 1em; padding-top: 0.75em; padding-bottom: 0.75em; text-align: left; min-width: 50px; vertical-align: top;
}
table th.tool, table td.tool { padding: 0 1em;
}
table th + th,
table th + td,
table td + th,
table td + td { border-left-width: 1px;
}
table thead tr:last-child { border-bottom-width: 2px;
}
table thead th,
table tr.index th { font-size: 1.13333em; line-height: 1.41176em; font-family: Helvetica, Arial, sans-serif; font-weight: bold; line-height: 1.25; text-transform: uppercase;
}
table thead th { border-bottom: 1px solid; padding-bottom: .25em;
}
table tr.index th { font-size: 1.33333em; line-height: 1.2em;
}
table tbody:first-of-type tr.index th { padding-top: 1em;
}
table tbody th { font-weight: normal;
}
@media (max-width: 47.9375em) { table { border: 0; border-bottom-width: 0.0625em; border-bottom-style: solid; padding-bottom: 1.4375em; padding-bottom: 0; display: block; width: 100%; /* * make everything display block so it * aligns vertically */ /* Labeling * adding a data-title attribute to the cells * lets us add text before the content to provide * the missing context * * Markup: * Content Here * * Display: * Column Header: Content Here */ } table caption { display: block; } table thead { display: none; visibility: hidden; } table tbody, table tr, table th, table td { border: 0; display: block; padding: 0; text-align: left; white-space: normal; } table tr { margin-bottom: 1.5em; } table th[data-title]:before, table td[data-title]:before { content: attr(data-title) ": "; font-weight: bold; } table th:not([data-title]) { font-weight: bold; } table td:empty { display: none; }
}
![Un-doing tables - Script Codes](http://shots.codepen.io/aarongustafson/pen/ucJGv-512.jpg)
Developer | Aaron Gustafson |
Username | aarongustafson |
Uploaded | July 22, 2022 |
Rating | 4.5 |
Size | 3,993 Kb |
Views | 36,432 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Form Patterns | 5,922 Kb |
Footnote references that maintain good user focus | 2,167 Kb |
MQ-based Content-controlled Optional Image Loading | 3,047 Kb |
Simplified JS-based MQ Inspector | 2,353 Kb |
Simple pull quote | 3,392 Kb |
Zoom Layouts v2 | 2,098 Kb |
Simple Compact Labels | 1,978 Kb |
Easy Couch Mode | 8,819 Kb |
Pure CSS Modal | 3,569 Kb |
Lazy Loading Images | 4,245 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Layout 11 | Altynai | 1,690 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
Weather App | Kw7oe | 3,162 Kb |
Flex layout example | Mofny | 1,663 Kb |
Dribbble Template | ExtremelyGinger | 2,204 Kb |
Under construction | GhostRider | 1,642 Kb |
Perspective Origin Demo | Agelber | 3,614 Kb |
DFF Website | Hawcubite | 10,123 Kb |
Animated SVG stroke-dasharray | Netsi1964 | 3,179 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!