CSS Grid gallery
How do I make an css grid gallery?
What is a css grid gallery? How do you make a css grid gallery? This script and codes were developed by Benjamin Réthoré on 05 January 2023, Thursday.
CSS Grid gallery - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Grid gallery</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section class='container'> <article class='item item--1'>1</article> <article class='item item--2'>2</article> <article class='item item--3'>3</article> <article class='item item--4'>4</article> <article class='item item--5'>5</article> <article class='item item--6'>6</article> <article class='item item--7'>7</article> <article class='item item--8'>8</article> <article class='item item--9'>9</article> <article class='item item--10'>10</article> <article class='item item--11'>11</article> <article class='item item--12'>12</article> <article class='item item--13'>13</article> <article class='item item--14'>14</article>
</section>
</body>
</html>
CSS Grid gallery - Script Codes CSS Codes
*, *:before, *:after { box-sizing: border-box;
}
body { background: #F4F4F4; padding: 16px;
}
.container { display: -ms-grid; display: grid; -ms-grid-columns: (260px)[5]; grid-template-columns: repeat(5, 260px); -ms-grid-rows: 145px; grid-template-rows: 145px; grid-gap: 8px; text-align: center; line-height: 145px; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.item { background-color: #fff;
}
.item--5 { -ms-grid-column: 2; grid-column-start: 2; -ms-grid-row: 2; grid-row-start: 2; -ms-grid-row-span: 2; grid-row-end: span 2; line-height: 300px; background-color: #fa8;
}
Developer | Benjamin Réthoré |
Username | bnthor |
Uploaded | January 05, 2023 |
Rating | 3 |
Size | 2,311 Kb |
Views | 6,072 |
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 |
Responsive height typographic menu | 2,549 Kb |
Simple tooltips | 2,810 Kb |
Fun form with currentColor | 2,713 Kb |
Cookie policy popunder | 3,743 Kb |
Sample scss map | 2,451 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 |
Heartbeat | Apetrov | 2,079 Kb |
Buttons with style | Chbymnky | 2,082 Kb |
A Pen by John Malc | F789gh | 1,420 Kb |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
Replace url via jquery | Serluk | 1,429 Kb |
Lecture 1 | Law | 0 Kb |
Sidebar Thing | Jonambas | 2,779 Kb |
RollOver Effect 2 | Lmack90 | 2,162 Kb |
Cars going | Netoguimaraes | 1,699 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 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!