Flexbox Grid - equal height

Developer
Size
2,855 Kb
Views
20,240

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 Previews

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;
}
Flexbox Grid - equal height - Script Codes
Flexbox Grid - equal height - Script Codes
Home Page Home
Developer Dave
Username DaveOrDead
Uploaded September 17, 2022
Rating 3
Size 2,855 Kb
Views 20,240
Do you need developer help for Flexbox Grid - equal height?

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!

Dave (DaveOrDead) Script Codes
Create amazing sales emails with AI!

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!