Responsive Flexbox Table
How do I make an responsive flexbox table?
What is a responsive flexbox table? How do you make a responsive flexbox table? This script and codes were developed by Adam Lowenthal on 12 October 2022, Wednesday.
Responsive Flexbox Table - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive Flexbox Table</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="table"> <div class="table__head"> <div class="th"> <div class="td">First Name</div> <div class="td">Last Name</div> <div class="td">E-Mail</div> <div class="td">Phone Number</div> </div> </div> <div class="table__rows"> <div class="tr"> <div class="td">Adam</div> <div class="td">Lowenthal</div> <div class="td">[email protected]</div> <div class="td">516-555-8973</div> </div> <div class="tr"> <div class="td">Jesse</div> <div class="td">Gleisman</div> <div class="td">[email protected]</div> <div class="td">516-555-4685</div> </div> <div class="tr"> <div class="td">Adam</div> <div class="td">Lowenthal</div> <div class="td">[email protected]</div> <div class="td">516-555-8973</div> </div> <div class="tr"> <div class="td">Jesse</div> <div class="td">Gleisman</div> <div class="td">[email protected]</div> <div class="td">516-555-4685</div> </div> <div class="tr"> <div class="td">Adam</div> <div class="td">Lowenthal</div> <div class="td">[email protected]</div> <div class="td">516-555-8973</div> </div> <div class="tr"> <div class="td">Jesse</div> <div class="td">Gleisman</div> <div class="td">[email protected]</div> <div class="td">516-555-4685</div> </div> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha/js/bootstrap.min.js'></script>
</body>
</html>
Responsive Flexbox Table - Script Codes CSS Codes
/* Demo Only -- Delete Below */
.container { padding-top: 50px;
}
/* Demo Only -- Delete Above */
.table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: column nowrap; flex-flow: column nowrap; color: white;
}
.table .th { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row wrap; flex-flow: row wrap; font-weight: 500; font-size: 16px; padding: .5em; background: #e74c3c; text-transform: uppercase; letter-spacing: 1px;
}
.table .th .td { display: -webkit-box; display: -ms-flexbox; display: flex; width: calc(100% / 4); font-size: 14px;
}
.table .tr { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row wrap; flex-flow: row wrap; padding: .5em;
}
.table .tr:nth-child(even) { background: #3498db;
}
.table .tr:nth-child(odd) { background: #2980b9;
}
.table .tr .td { display: -webkit-box; display: -ms-flexbox; display: flex; width: calc(100% / 4); font-size: 14px;
}
@media (max-width: 768px) { .table { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row nowrap; flex-flow: row nowrap; color: white; } .table__head { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: column wrap; flex-flow: column wrap; width: 40%; background: #e74c3c; } .table__head .th { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: column wrap; flex-flow: column wrap; font-weight: 500; font-size: 16px; padding: .5em; text-transform: uppercase; letter-spacing: 1px; } .table__head .th .td { display: -webkit-box; display: -ms-flexbox; display: flex; font-size: 14px; width: 100%; } .table__rows { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: column wrap; flex-flow: column wrap; width: 60%; } .table__rows .tr { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: column wrap; flex-flow: column wrap; padding: .5em; } .table__rows .tr:nth-child(even) { background: #3498db; } .table__rows .tr:nth-child(odd) { background: #2980b9; } .table__rows .tr .td { display: -webkit-box; display: -ms-flexbox; display: flex; font-size: 14px; width: 100%; }
}
Developer | Adam Lowenthal |
Username | alowenthal |
Uploaded | October 12, 2022 |
Rating | 3 |
Size | 2,701 Kb |
Views | 26,312 |
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 |
RWP Notifications | 2,999 Kb |
Sheet Music Animated Notes | 6,029 Kb |
Agile Burndown Chart | 4,366 Kb |
Flexbox Responsive Grid Tiles | 2,030 Kb |
Spinning Animated Vinyl Record | 5,968 Kb |
Google Maps Directions Sidebar | 3,884 Kb |
Dashboard Focal Tags | 2,981 Kb |
A Pen by Adam Lowenthal | 5,504 Kb |
Webster Hall Show Tickets | 4,565 Kb |
Blog List -- BnC | 5,011 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 |
Brent Burns Tribute Page | Nevada48 | 2,569 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
To Do List with Delete | Mattlbrody | 2,068 Kb |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 Kb |
This in constructor context | _shree33 | 1,718 Kb |
Twitch.tv API | Ryzokuken | 2,618 Kb |
Header Line Issue | Charlie-volpe | 1,768 Kb |
Mandelbrot Fractal | _Billy_Brown | 2,706 Kb |
CSS Social Media Icon | TychoBlender | 3,871 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!