Get started with equalizecss CDN
MIT licensed
Equalize.js: Lightweight library adjusting grid element heights for equality.
Tags:- html
- framework
- flexbox
- grid
- css
Stable version
Copied!
How to start using equalizecss CDN
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/equalizecss@1.3.0/dist/equalize.min.css">
<style>
.my-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
grid-gap: 10px;
}
</style>
</head>
<body>
<div class="my-grid">
<div class="grid-item">
<img src="image1.jpg" alt="Image 1" loading="lazy">
</div>
<div class="grid-item">
<img src="image2.jpg" alt="Image 2" loading="lazy">
</div>
<div class="grid-item">
<img src="image3.jpg" alt="Image 3" loading="lazy">
</div>
<!-- Add more images as needed -->
</div>
<script src="https://cdn.jsdelivr.net/npm/equalizecss@1.3.0/dist/equalize.min.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
const grid = document.querySelector(".my-grid");
new Equalizing(grid);
});
</script>
</body>
</html>
Copied!
Copied!