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,230 |
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 |
Callbacks 2 - Passing arguments | 1,496 Kb |
Flexbox Grid - Custom Properties | 2,975 Kb |
React Calculator | 30,708 Kb |
Flexbox Grid | 3,946 Kb |
Character Gen - React | 37,586 Kb |
Javascript Binding | 3,718 Kb |
Colour Swatches | 3,409 Kb |
Pogo map | 3,772 Kb |
Toggle component | 29,331 Kb |
A Pen by Dave | 1,728 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 |
Pomodoro Clock | Osycon | 3,705 Kb |
TigerWoods Freecodecamp Page | Baileytj | 2,869 Kb |
Simple Login Form | JoshBlackwood | 4,418 Kb |
RSW | JordanC | 3,726 Kb |
Savemedia1.1 | EdsonAlcala | 2,148 Kb |
CSS3 Latte Art Logo | Esambino | 2,036 Kb |
Flexbox playground | Enxaneta | 5,418 Kb |
Fluid Layout with Float | Jxqr97 | 1,785 Kb |
CSS3 Snow Animation | NickyCDK | 1,695 Kb |
Sticky footer testing | 75th | 1,649 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!