- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Bootstrap Grid Stacked to horizontal grid
You can try to run the following code to create a grid stacked to the horizontal grid 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 = "container"> <h1>Grid</h1> <div class = "row"> <div class = "col-sm-6" style = "background-color:blue; color: white"> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> <div class = "col-sm-6" style = "background-color:red; color: white"> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> </div> </div> </body> </html>
- Related Articles
- Stacked-to-horizontal Bootstrap Grid
- Bootstrap Grid Stacked to horizontal grid with fluid container
- Bootstrap Grid Structure
- Bootstrap Large Grid
- Bootstrap Small Grid
- Bootstrap Grid System Usage
- Responsive grid with Bootstrap
- Bootstrap Grid for multiple devices
- Difference between CSS Grid and Bootstrap
- Working Bootstrap grid system across multiple devices
- Bootstrap Grid for Medium and Large Device
- Container to create a grid of Bootstrap 4 cards
- How to display horizontal grid lines in a JTable with Java?
- Java Program to display only horizontal grid lines in a JTable
- Create three unequal Columns with Bootstrap grid layout

Advertisements