Flexbox Grid - equal height
How do I make an flexbox grid - equal height?
Work in progress flexbox grid. Credits due to both Inuit CSS for some of the naming conventions and Suit CSS for influence taken from their flexbox grid . What is a flexbox grid - equal height? How do you make a flexbox grid - equal height? This script and codes were developed by Dave on 17 September 2022, Saturday.
Flexbox Grid - equal height - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flexbox Grid - equal height</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="l-grid l-grid--three-col l-grid--four-col-from-lap l-grid--equal-height "> <div class="l-grid__item"> <div class="c-card"> <p>Cell 1</p> <p>Cell 1</p> <p>Cell 1</p> <p>Cell 1</p> </div> </div> <div class="l-grid__item"> <div class="c-card"> <p>Cell 2</p> </div> </div> <div class="l-grid__item"> <div class="c-card"> <p>Cell 3</p> </div> </div> <div class="l-grid__item"> <div class="c-card"> <p>Cell 4</p> </div> </div> <div class="l-grid__item"> <div class="c-card"> <p>Cell 5</p> </div> </div> <div class="l-grid__item"> <div class="c-card"> <p>Cell 6</p> </div> </div> <div class="l-grid__item"> <div class="c-card"> <p>Cell 7</p> </div> </div> <div class="l-grid__item"> <div class="c-card"> <p>Cell 8</p> </div> </div>
</div>
<!-- .l-grid -->
</body>
</html>
Flexbox Grid - equal height - Script Codes CSS Codes
html { box-sizing: border-box;
}
*,
*::before,
*::after,
input[type="search"] { box-sizing: inherit;
}
.c-card { background-color: pink; padding: 10px;
}
/** * Grid container * 1. to counter padding-right on cols * 2. Colour just for display purposes - should be unstyled
*/
.l-grid { display: flex; flex-flow: row wrap; margin: 0 0 -10px -10px; background-color: red;
}
/** * Grid Item * All content must be contained within child `grid__item` elements. * 100% width by default - mobile first * * 1. Allows use of widths in flexbox * 2. Colour just for display purposes - should be unstyled */
.l-grid__item { box-sizing: inherit; padding: 0 0 10px 10px; flex-basis: auto; width: 100%; background-color: yellow;
}
@media screen and (max-width: 600px) { .l-grid--three-col > .l-grid__item { width: 33.333%; }
}
@media screen and (min-width: 601px) { .l-grid--four-col-from-lap > .l-grid__item { width: 25%; }
}
.l-grid--equal-height > .l-grid__item { display: flex;
}
.l-grid--equal-height > .l-grid__item > * { flex-basis: 100%;
}
.u-mb-large { margin-bottom: 40px;
}
Developer | Dave |
Username | DaveOrDead |
Uploaded | September 17, 2022 |
Rating | 3 |
Size | 2,855 Kb |
Views | 20,240 |
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 |
React dropdown | 8,538 Kb |
Blank slates | 2,666 Kb |
Validation fun | 3,893 Kb |
Shell CSS lib | 43,289 Kb |
Password validation | 3,866 Kb |
Pogo map | 3,772 Kb |
Words at War | 32,346 Kb |
Callbacks 2 - Passing arguments | 1,496 Kb |
Scrollable tables | 1,926 Kb |
Cors | 1,831 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 |
Login-ng-modal | Heedoo | 3,566 Kb |
Sidebar Thing | Jonambas | 2,779 Kb |
Zeichensatz | Moklick | 2,058 Kb |
Animate elements with fixed gradient | Badabam | 4,406 Kb |
A Pen by Bryan | Brydave | 2,286 Kb |
Buttons with style | Chbymnky | 2,082 Kb |
Horizontal scroll fixed element | HerrSerker | 0 Kb |
CSS Piano | Dannystyle | 5,138 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
Video mute | Leon9208 | 2,131 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!