FlexBox Gallery

Size
2,205 Kb
Views
12,144

How do I make an flexbox gallery?

What is a flexbox gallery? How do you make a flexbox gallery? This script and codes were developed by James Steinbach on 05 November 2022, Saturday.

FlexBox Gallery Previews

FlexBox Gallery - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>FlexBox Gallery</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <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> <ul class="gallery"> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li> <li class="gallery-item">Gallery Item</li>
</ul> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

FlexBox Gallery - Script Codes CSS Codes

* { box-sizing: border-box;
}
.gallery { margin: 0; padding: 1em; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; list-style-type: none;
}
.gallery-item { text-align: center; display: block; background: #222; color: #fff; margin: 1em; padding: 1em; line-height: 5em; -ms-flex-preferred-size: calc(33.33% - 2em); flex-basis: calc(33.33% - 2em); min-width: 150px;
}
FlexBox Gallery - Script Codes
FlexBox Gallery - Script Codes
Home Page Home
Developer James Steinbach
Username jdsteinbach
Uploaded November 05, 2022
Rating 3
Size 2,205 Kb
Views 12,144
Do you need developer help for FlexBox Gallery?

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!

James Steinbach (jdsteinbach) 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!