- 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 with fluid container
To create a grid stacked to horizontal grid with fluid container, use the container-fluid class.
This class allows the container to span to the screen’s full width.
You can try to run the following code to create a grid with fluid container −
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-fluid"> <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
- Bootstrap Grid Stacked to horizontal grid
- Stacked-to-horizontal Bootstrap Grid
- Container to create a grid of Bootstrap 4 cards
- Responsive grid with Bootstrap
- Container to create a grid of Bootstrap 4 cards like a group
- Bootstrap Large Grid
- Bootstrap Small Grid
- Bootstrap Grid Structure
- Role of CSS Grid Container
- Bootstrap Grid System Usage
- Container to create a grid of Bootstrap 4 cards of equal height and width
- Vertically align the entire grid inside the container with CSS
- Create Three Equal Columns with Bootstrap grid Layout
- Create three unequal Columns with Bootstrap grid layout
- Create two unequal columns with Bootstrap Grid Layout

Advertisements