

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Nesting Columns in Bootstrap
To nest your content with the default grid, add a new .row and set of .col-md-* columns within an existing .col-md-* column.
You can try to run the following code to learn how to implement nesting columns in Bootstrap −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "box"> <h1>Heading</h1> <div class = "row"> <div class = "col-md-3" style = "background-color: gray; color: white; box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;"> <h4>Heading</h4> <p>This is demo text.</p> </div> <div class = "col-md-9" style = "background-color: gray;color: white; box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;"> <h4>Heading</h4> <p>This is demo text.</p> <div class = "row"> <div class = "col-md-6" style = "background-color: orange; box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;"> <p>This is box 1.</p> </div> <div class = "col-md-6" style = "background-color: orange; box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;"> <p>This is box 2.</p> </div> </div> <div class = "row"> <div class = "col-md-6" style = "background-color: orange; box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;"> <p>This is box 3.</p> </div> <div class = "col-md-6" style = "background-color: orange; box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;"> <p>This is box 4.</p> </div> </div> </div> </div> </div> </body> </html>
- Related Questions & Answers
- Offset Columns in Bootstrap
- Array Nesting in C++
- Nesting template strings in JavaScript
- Create Two Columns with Two Nested Columns in Bootstrap
- Bootstrap 4 .card-columns class
- Un-nesting array of object in JavaScript?
- Move columns to the right with Bootstrap
- Change the order of the Bootstrap grid columns
- Create Three Equal Columns with Bootstrap grid Layout
- Create three unequal Columns with Bootstrap grid layout
- Create two unequal columns with Bootstrap Grid Layout
- Maximum Nesting Depth of Two Valid Parentheses Strings in Python
- Set Flex Items into equal width columns with Bootstrap
- Proper use of flex properties when nesting flex containers
- JavaScript - How to create nested unordered list based on nesting of array?
Advertisements