Grid with Flex Fallback
How do I make an grid with flex fallback?
What is a grid with flex fallback? How do you make a grid with flex fallback? This script and codes were developed by Chung Man Chau on 15 January 2023, Sunday.
Grid with Flex Fallback - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Grid with Flex Fallback</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="grid"> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> <div>7</div> <div>8</div> <div>9</div>
</div>
</body>
</html>
Grid with Flex Fallback - Script Codes CSS Codes
* { box-sizing: border-box;
}
.grid { display: flex; flex-flow: row wrap; width: 100%; justify-content: flex-start;
}
.grid div { flex: 0 1 18%; margin: 0 1% 1em; min-width: 150px; max-width: 98%; border: 1px solid rgb(0, 95, 107); border-radius: 3px; background-color: rgba(56, 179, 195, 0.8); padding: 0.2em; color: #fff;
}
.grid div:nth-child(odd) { background-color: rgba(0, 95, 107, 0.8);
}
@media (min-width: 330px) { .grid div { max-width: 48%; }
}
@media (min-width: 768px) { .grid div { max-width: 23%; }
}
@supports (display: grid) {
/* .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); grid-gap: 20px; } */
}
Developer | Chung Man Chau |
Username | chungman93 |
Uploaded | January 15, 2023 |
Rating | 3 |
Size | 1,710 Kb |
Views | 8,096 |
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 |
Rolling Word Hover | 2,541 Kb |
Iphone Mockup | 3,283 Kb |
Animated Gradient Text | 2,002 Kb |
Bray Wealth - Mock up - Responsive | 4,796 Kb |
Google Plus Button | 2,743 Kb |
Hover Underlining | 2,456 Kb |
Expanding Tiles | 3,932 Kb |
Using grid in the real world | 2,912 Kb |
BBC Beta - Grid | 2,153 Kb |
Opening Menu Concept | 3,136 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 |
A vuejs widget | Chrgl86 | 2,869 Kb |
Jquery 2d character movement | Drewtadams | 4,291 Kb |
Spin | Elalemanyo | 8,262 Kb |
Canvas Fireworks | Jackrugile | 6,200 Kb |
Mapbox Directions with geolocation tracking | Pollardld | 5,827 Kb |
Flexbox Grid - equal height | DaveOrDead | 2,855 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
Cloudy Spiral CSS animation | Hakimel | 6,587 Kb |
TestTube CSS | EZPK | 2,710 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!