Grid with Flex Fallback

Size
1,710 Kb
Views
8,096

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 Previews

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; } */
}
Grid with Flex Fallback - Script Codes
Grid with Flex Fallback - Script Codes
Home Page Home
Developer Chung Man Chau
Username chungman93
Uploaded January 15, 2023
Rating 3
Size 1,710 Kb
Views 8,096
Do you need developer help for Grid with Flex Fallback?

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!

Chung Man Chau (chungman93) Script Codes
Create amazing art & images 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!