Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Nesting columns"
Bootstrap 3.2.0 Snippet by
albertobissacco
3.2.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
4.2K
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> <h1>Nesting Columns</h1> <div style="padding:0 15px;"> <div class="row"> <div class="col-xs-8 col-sm-4"> <img class="img-thumbnail img1" alt="photo1"> </div> <div class="col-xs-4 col-sm-8"> <div class="row"> <div class="col-sm-6"> <img class="img-thumbnail img2" alt="photo2"> </div> <div class="col-sm-6"> <img class="img-thumbnail img3" alt="photo3"> </div> </div> </div> </div> </div> <p class="text-center cr">by <strong>RedRibbon</strong></p>
body {padding:20px;} h1{background:#F1645E; color:#fff!important; padding:10px 0; text-align:center; margin-bottom:20px!important;} p.cr{font-size:0.75em; color:#666; background:#eee; padding:5px; margin-top:20px;} p.cr > strong{color:#F1645E;} .debug > .row > div {box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444; } .debug > .row > div:nth-child(3n+1) {background-color: #5F8EFC;} .debug > .row > div:nth-child(3n+2) {background-color: #FEBA00;} .debug > .row > div:nth-child(3n) {background-color: #F1645E;} .img1{content:url(http://lorempixel.com/400/300/sports/3/)} .img2{content:url(http://lorempixel.com/400/300/sports/4/)} .img3{content:url(http://lorempixel.com/400/300/sports/5/)}
Related:
See More
Template
Now UI Dashboard PRO
105.6K
116
Grid Columns Divider
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76