CodePen
codepen.io › sruthil › pen › XWWpEer
Responsive Image Grid compatible with bootstrap
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <title>Image Grid</title> </head> <body> <section> <div class="container"> <div class="img-container-grid"> <div class="smallsquare"><img src="https://cdn.pixabay.com/photo/2018/05/28/22/
Videos
CodePen
codepen.io › bmcarthur › pen › vQrpYY
Bootstrap 4 Grid Gallery
<section class="gallery-block grid-gallery"> <div class="container"> <div class="heading"> <h2>Grid Gallery</h2> </div> <div class="row"> <div class="col-md-6 col-lg-4 item"> <a class="lightbox" href="http://www.politicalmetaphors.com/wp-content/uploads/2015/04/blog-shapes-square-windows.jpg"> <img class="img-fluid image scale-on-hover" src="https://res.cloudinary.com/dpnaptcei/image/upload/v1537070505/Gallery/image1.jpg"> </a> </div> <div class="col-md-6 col-lg-4 item"> <a class="lightbox" href="https://res.cloudinary.com/dpnaptcei/image/upload/v1537070507/Gallery/image2.jpg"> <img class="img
CodePen
codepen.io › cema93 › pen › BbLZKJ
Bootstrap Photo Grid
<nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#"><span class="glyphicon glyphicon-picture"></span> IMGS</a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <
CodePen
codepen.io › kskhr › pen › jmJGWr
responsive grid square image (bootstrap)
<div class="container"> <div class="row"> <div class="col-xs-3"> <div class="square" style="background-image: url('https://dummyimage.com/300x600/000/fff')"></div> </div> <div class="col-xs-3"> <div class="square" style="background-image: url('https://dummyimage.com/300x600/000/fff')"></div> </div> </div> </div>
CodePen
codepen.io › lauramaccarley › pen › gOgbdaJ
Bootstrap 5 Grid – 2-column - Half fluid width, half container (Text and image)
// Grid adjustments for half fluid image, half text layouts // Add class .half-fluid to outer section container .half-fluid { // Add .left-half or .right-half class to the image column depending on which side it goes on // On mobile, images stack, break out of the container, and go full width .left-half, .right-half { left: 50%; margin-left: -50vw; max-width: 100vw; position: relative; right: 50%; width: 100vw; padding: 0px; } // Background image .image { background-image: url("https://loremflickr.com/1000/2000/dog"); background-size: cover; background-position: center; min-height: 400px; heig
CodePen
codepen.io › eHtmlu › pen › BaodGVp
Simple and Responsive CSS Image Grid
<h1>Simple and Responsive CSS Image Grid</h1> <p>And it works also for other content, not only images ✌😏</p> <div class="myGallery"> <img src="https://picsum.photos/190/190?1" /> <img src="https://picsum.photos/190/190?2" /> <img src="https://picsum.photos/190/190?3" /> <img src="https://picsum.photos/190/190?4" /> <img src="https://picsum.photos/190/190?5" /> <img src="https://picsum.photos/190/190?6" /> <img src="https://picsum.photos/190/190?7" /> <img src="https://picsum.photos/190/190?8" /> <img src="https://picsum.photos/190/190?9" /> <img src="https://picsum.photos/190/190?10" /> <
CodePen
codepen.io › gokemon › pen › qNYjPO
Bootstrap Grid photo collage
container{ width: 960px; } /* Testing the layout with makers */ /* .gridmakers{ background-color: #dedef8; border: solid red 1px; } */ .gridmakers2{ background-color: #dedef8; border: solid red 1px; } /* Make sure images don't get too big */ img { max-width: 100%; } /* no-gutters Class Rules */ .row.no-gutters { margin-right: 0; margin-left: 0; } .row.no-gutters > [class^="col-"], .row.no-gutters > [class*=" col-"] { padding-right: 0; padding-left: 0; }
CodePen
codepen.io › LoicLaubriat › pen › KXXeoL
Image Gallery Bootstrap with Isotope
<div class="container"> <!--filtering--> <div class="btn-group btn-group-justified filter-button-group" role="group" aria-label="filterImages"> <div class="btn-group" role="group"> <button type="button" class="btn btn-default is-checked" data-filter="*">All</button> </div> <div class="btn-group" role="group"> <button type="button" class="btn btn-default" data-filter=".people">People</button> </div> <div class="btn-group" role="group"> <button type="button" class="btn btn-default" data-filter=".nature">Nature</button> </div> </div> <div class="grid"> <div class="grid-sizer col-xs-12 col-sm-6 co
CodePen
codepen.io › jeffharbers › pen › mymoKw
Custom Bootstrap Grid
<section class="grid default-grid text-center"> <div class="container"> <h1>Extended Bootstrap Grid</h1> <p class="lead">More examples of the default grid can be found at <a href="https://getbootstrap.com/css/#grid" target="_blank">Bootstrap</a>.</p> <p>Just add the custom classes and you are good to go!</p> </div> </section> <section class="grid default-grid"> <div class="container"> <h1>Sample <small>30px</small></h1> <div class="row sample-row"> <div class="col-xs-6 col-sm-4 gutter-margin-xs-md"><div class="inner">col-xs-6 col-sm-4</div></div> <div class="col-xs-6 col-sm-8 gutter-margin-xs-
CodePen
codepen.io › dashbouquetdevelopment › pen › mBvQrB
Bootstrap gallery
<html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link href="https://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet"> <link rel="stylesheet" href="https://rawgit.com/LeshikJanz/libraries/master/Bootstrap/baguetteBox.min.css"> <title>Freebie: 4 Bootstrap Gallery Templates</title> </head> <body> <div class="container gallery-container"> <h1>Bootstrap 3 Gallery</h1> <
CodePen
codepen.io › tag › image-grid
Pens tagged 'image-grid' on CodePen
CodePen doesn't work very well without JavaScript · We're all for progressive enhancement, but CodePen is a bit unique in that it's all about writing and showing front end code, including JavaScript. It's required to use most of the features of CodePen · Need to know how to enable it?
W3Schools
w3schools.com › howto › howto_css_image_grid_responsive.asp
How To Create a Responsive Image Grid
Tip: Go to our Image Grid Tutorial to learn how to create a clickable grid that varies between columns.