The Wayback Machine - https://web.archive.org/web/20240927025301/https://www.geeksforgeeks.org/bootstrap-5-layout-complete-reference/
Open In App

Bootstrap 5 Layout Complete Reference

Last Updated : 25 Sep, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Bootstrap 5 Layout facilitates the different components for the Layout to build a better user interface, along with enhancing the overall interactivity of the website. It helps to customize the in-built functions to make a responsive layout & scalable that fits across different device or viewport sizes.

The complete list of Layout is listed below with their brief description:

Breakpoints

Breakpoint allows developers to create flexible and adaptable layouts that can be customized according to the device & screen width.

Components

Descriptions

Available breakpoints

Bootstrap 5 provides a predefined set of different available breakpoints to build responsive utilities.

Media queries

We use a handful of media queries for delivering different style sheets to different devices, to create sensible breakpoints for our layouts and interfaces.

Min-width

For Min-Width breakpoints, CSS would only be applied for devices larger than min-width.

Max-width

For Max-width, CSS is executed for the size smaller than mentioned in the media query.

Single breakpoint

We use media queries to create sensible breakpoints for our interfaces and layouts.

Between breakpoints

We use media queries to create sensible breakpoints for our interfaces and layouts.

Containers

Containers are basically used to add pad the contents inside or center the items inside the container.

Components

Descriptions

Default container Containers are the most fundamental layout component in Bootstrap, which is necessary if you want to use the pre-installed grid system.
Responsive containers Bootstrap 5 Containers Responsive containers are used to group HTML elements and also provide support for grid layout.
Fluid containers Fluid Containers are used to make containers that span the entire width of the screen i.e. they span the entire width of the viewport.
Sass  Containers Sass has a set of predefined container classes which makes building layouts easier.

Grid

The Grid System allows up to 12 columns across the page. You can use each of them individually or merge them together for wider columns.

Components

Descriptions

Auto-layout columns It comes with a flexbox and allows up to 12 columns across the page. you can also group the columns together.
Equal-width The equal-width grid system is basically used to create the grid in equal sizes. With the help of classes, we will manage the grid’s width.
Setting one column width Setting one column width is used to set the width of a specific column, it can be applied to any column.
Variable width content Grid system Variable width content means in a grid system we can add a setting where the column will adjust to the content inside it and occupy that space only.
Responsive classes Grid system Responsive classes help to create a responsive layout using predefined six tiers classes of Bootstrap 5 by customizing the size of columns with extra-small (xs), small (sm), medium (md), large (lg), or extra large (xl).
All breakpoints Bootstrap 5 Grid System has been responsive on its own and also we can add the custom sm/md/lg/xl breakpoints and the respective column sizes to them.
Stacked to horizontal Grid System is a way to create layouts that are responsive and highly customizable.
Mix and match It is generally utilized where the number of columns in each row is mixed and matched to achieve a certain type of layout.
Row columns Bootstrap Grid has row column classes to quickly create basic grid layouts for the webpage.
Nesting Bootstrap 5 Grid system Nesting is adding rows and columns of the grid in one cell of an already existing grid

Columns

Columns facilitate the different options for the alignment, ordering, and offsetting of the Columns with the help of a flexbox grid system. 

Components

Descriptions

Alignment We can use flexbox alignment utilities to align our columns horizontally and vertically without using CSS.
Vertical alignment Vertical alignment is used to change the alignment of the column’s content in the vertical direction.
Horizontal alignment Horizontal alignment is used to align the columns horizontally so that we can define how the columns will be displayed in a single line.
Column wrapping Columns are an integral part of the grid system. The columns are placed inside the row that is wrapped by a container
Column breaks Columns are smaller cells or sections inside a row in a Grid System
Reordering Columns Reordering holds the feature of manipulation of column order visually and offsets grid columns.
Order classes Order Classes are used to set the visual order of the columns inside a row irrespective of their position in the Document Object
Offsetting columns Offsetting columns can offset grid columns in two ways, offset classes and margin utilities.
Offset classes This class is used to set the offset of the grid. Size is the among small (sm), medium (md), and large (lg).
Margin utilities Margin utilities are used to put some margin between the sibling elements such that it pushes the sibling elements away from their position.
Standalone column classes Standalone column classes are used to give an element a specific width, where the .col-* classes can also be used outside a .row, which can be used to create the standalone column.

Gutters

Gutters are used to give padding between columns,  responsively space, and align content to the grid system.

Components

Descriptions

Horizontal gutters Horizontal gutters are used for padding between columns, responsively space, and aligning content to the grid system
Vertical gutters A vertical gutter is used for padding between columns, responsively space, and aligning content to the grid system.
Horizontal & vertical gutters Horizontal & vertical Gutters in Bootstrap 5 are used to give padding between columns, responsively space, and align content to the grid system.
Row columns gutters Row column gutters are used to create responsive space in our grid in the Bootstrap 5 framework.
No gutters No gutters will remove margin and padding from .row and columns.
Change the gutters It helps to change the gutters using $spacer to make the $gutters SASS map.

Utilities

 The Utility Layout is used for showing, hiding, aligning, and spacing content.

Components

Descriptions

Changing display The utility layout is used for showing, hiding, aligning, and spacing content.
Flexbox options These classes include options for setting the width and height of elements, controlling the placement of elements using margins and padding, and arranging elements using a flexbox.
Margin and padding The margin and padding utilities are used to add space around elements.
Toggle visibility The visibility of an element can be changed without using any display properties but by using the Utilities Toggle visibility classes

Z-index

 The z-Index is a CSS property that is used to control the stacking order of elements on a web page.



Previous Article
Next Article

Similar Reads

ReactJS UI Ant Design Layout Component Complete Reference
Ant Design is a popular ReactJS UI library that is used to build the design system for enterprise-level products. The Ant Design contains a rich set of high-quality components for building efficient & interactive user interfaces with an enjoyable work experience. Ant design facilitates a huge number of UI components to enrich your web applicati
1 min read
EasyUI jQuery Layout Widget Complete Reference
The EasyUI jQuery has a collection of components for user-interface based on Angular, jQuery, React, and Vue, as it facilitates the necessary functionality for designing & building interactive, modern javascript applications. By using the EasyUI in jQuery, we only need to design the user interface by writing some HTML markups & need not wri
1 min read
Pure CSS Layout Complete Reference
Pure CSS is a popular framework & an open-source tool, developed by Yahoo, for creating responsive websites & web applications by making use of the responsive CSS modules, that help to develop a better user experience with high efficiency. It can be used as an alternative to Bootstrap. The Layout in Pure CSS accomplishes the task of making
1 min read
Tachyons Layout Complete Reference
Tachyons is a free and open-source Toolkit, that is used to create a responsive website. Every website is divided into various parts like header, menus, content, and a footer. Tachyons Layout is used to define those sub-parts of a website. Tachyons Layout Tachyons Debugging Tachyons Debug with a Grid Tachyons Layout Basic Grid Tachyons Layout Flexb
1 min read
Bulma Layout Complete Reference
Bulma Layout can be used to design the structure of the website. It contains the different classes that can be useful to organize the data on the website. Bulma is a free, open-source CSS framework developed by Jeremy Thomas. This framework is based on the CSS Flexbox property. It is highly responsive, minimizing the use of media queries for respon
5 min read
Tailwind CSS Layout Complete Reference
Tailwind CSS is a utility-first CSS framework for rapid custom UI. It is a highly customizable, low-level CSS framework that gives you all of the building blocks that you need. As we know there are many CSS frameworks but people always choose the fast and easy framework to learn and use in the project. We can make the layout of a very quickly nice
3 min read
Bootstrap 4 Complete Reference
Bootstrap is a free and open-source tool collection for creating responsive websites and web applications. It is the foremost popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites. It solves many problems which we had once, one among which is that the cross-browser compatibility issue. Nowadays, the websites a
2 min read
Bootstrap 5 Content Complete Reference
Bootstrap 5 Content facilitates the different components, such as typography, responsive images, tables, etc., that help to organize the content in the hierarchical order, along with styling them in an elegant, consistent, and simple baseline, in order to enhance the overall user-experience to the website. The complete list of Content is listed bel
7 min read
Bootstrap 5 Layout Form Grid
Bootstrap 5 Layout Form Grid is used to create a complex form using grid classes. The form grid layout required multiple columns of different widths and alignments. To create a form grid, we use .row and .col classes. Form Grid Layout used Classes: .row: This class is used to create a row of a form layout..col: This class is used to create columns
2 min read
Bootstrap 4 | Holy Grail Layout
The Holy Grail Layout is a classic CSS problem in web development. Although there are a lot of creative solutions developed in HTML and CSS, the problem faced was that it involved sacrifices where enriching one feature is often compromised at the expense of the others. Modern frameworks such as Bootstrap 4 provides utilities for implementing this l
3 min read
Bootstrap 5 Layout Gutters
Gutters are the gaps between the columns in bootstrap's grid layout. The gutter modifier classes can be used to change the widths of the gutters. There are 3 primary gutter modifier classes that are listed below: Bootstrap5 Layout Gutter Modifier Classes: g-*: This class is used to set the width of the gutter.gx-*: This class is used to set the wid
2 min read
Bootstrap 5 Floating labels Layout
Bootstrap 5 Floating labels Layout is useful when we are working with the grid system, so we have to place form elements within column classes. Floating labels Layout Classes: There are no pre-defined classes, we need to use Bootstrap5 form classes, and place them according to our needs. as we want to display the form to the user. The total layout
2 min read
Bootstrap 5 Layout Column sizing
Bootstrap 5 Layout Column sizing is used to set the width of the column element. To create equal widths columns, .col within .row classes are used. We can also use the subset of classes to set split the columns unequally. Layout Column sizing used Classes: .row: This class is used to create rows for a layout..col: This class is used to create colum
2 min read
Bootstrap 5 Layout Horizontal form label sizing
Bootstrap 5 Layout Horizontal form label sizing is used to set the label of the form input field in different sizes. To set the label size, use the .col-form-label-sm or .col-form-label-lg class to <label> or <legend> tag with the size of .form-control-lg and .form-control-sm. Horizontal form label sizing used Classes: .col-form-label-s
2 min read
Bootstrap 5 Layout Horizontal form
Bootstrap 5 Layout Horizontal form is used to create horizontal forms by using the .row class with .col-*-* classes to specify the width of your labels and controls. Also, use the .col-form-label class with <label> element to set the form label in vertically centered. Layout Horizontal form used Classes: .row: This class is used to create the
2 min read
BootStrap 5 Grid system Auto-layout columns
Bootstrap's grid system is responsive. it's come with a flexbox and allows up to 12 columns across the page. you can also group the columns together. Auto-layout columns: To create easy column sizes without an explicit numbered class like .col-sm-6, Use breakpoint-specific column classes. Equal-width: The equal-width grid system is basically used t
2 min read
Bootstrap 5 Cards Layout
Bootstrap 5 Cards layout facilitates a variety of classes to be used for styling the content within the cards component, although, there are no responsive layout options available yet in Bootstrap. There are 3 components that help to define the Card layout, which are described below: Card groups: This component will help to render the cards as a si
3 min read
Bootstrap 5 Layout Forms
Bootstrap 5 Layout forms provide control of the input field and custom positioning. All the fields should be placed inside the <form> tag. By default the form is aligned vertically as the default value for display is block and is set to 100%. We can use additional classes to change this default placement Bootstrap 5 Layout Forms Classes: Ther
2 min read
BootStrap 5 Layout Grid System
BootStrap5 Layout Grid system is responsive. It comes with a flexbox and allows up to 12 columns across the page. You can also group the columns together. The grid system is a powerful mobile-first responsive flexbox grid. How it works: Here’s how the grid system comes together: Its grid supports six responsive breakpoints. You can control containe
3 min read
React Bootstrap Form Layout
React-Bootstrap is a front-end framework mainly customized for React. It simplifies the process of designing forms by providing a set of pre-designed components. These components can integrate with React application to create elegant and responsive forms with ease. Syntax: <Form> <Form.Label> ... </Form.Label> <Form.Control typ
4 min read
Bootstrap 5 Forms Layout
Bootstrap is one of the most popular frameworks for web developers. Developers utilize it to improve the front-end's responsiveness. If we follow the bootstrap documentation, we will see numerous possibilities for incorporating layout into a website. Bootstrap LayoutBootstrap 5 layout contains various subtopics, which we have discussed one by one h
8 min read
How to Create a Three-Column Layout in Bootstrap?
Creating a three-column layout in Bootstrap involves dividing the container into three equal-width columns using the col-sm-4 class within a row and container. This ensures the columns are responsive and maintain equal width on small-sized devices and larger, providing a balanced layout for organizing content effectively. Syntax<div class="conta
2 min read
How to Create a Basic Two-Column Layout using Bootstrap 5 ?
To create a basic two-column layout using Bootstrap, first, we have to enclose your content within a container, then create two divs with classes like col or col-xx, where xx represents the breakpoint for responsive behavior. Place your content inside these columns, and Bootstrap will handle the layout, adapting it for various screen sizes. Table o
3 min read
How to Create a Four-Column Layout with Bootstrap ?
In Bootstrap, creating a column layout is important for organizing content into a structured grid system. A four-column layout allows for efficient arrangement of content, such as displaying courses, products, or services, with flexibility in responsiveness for various screen sizes. Below are the approaches to create a four-column layout with boots
2 min read
React Bootstrap Layout
React Bootstrap Layout is a layout utility provided by the React Bootstrap library. They follow a stack style, where elements are arranged vertically or horizontally, creating an organized structure. These layouts are useful for building component-based designs. In React Bootstrap there are mainly 3 components. BreakPointsGridStacksCreating React A
3 min read
How to Create a Responsive Layout with React Bootstrap ?
Creating a responsive layout with React Bootstrap means designing a web page that adapts and looks good on various screen sizes and devices. React Bootstrap provides responsive components and grid system classes that help in organizing and scaling content effectively, ensuring a seamless user experience across desktops, tablets, and mobile devices.
3 min read
Bootstrap 5 Layout Containers
Bootstrap5 Layout Containers are considered the most basic layout that can be used and they can be used to contain other layouts. Containers are basically used to add pad the contents inside or center the items inside the container. In this article, we'll see Bootstrap 5 Layout Containers. Layout Containers: There are three types of containers avai
3 min read
Bootstrap 4 Fluid Layout
Bootstrap is a free and open-source tool collection for creating responsive websites and web applications. This is the most popular HTML, CSS, and JavaScript framework for developing responsive websites. It solves many issues which we had once, one of which is the cross-browser compatibility issue. The following class is used for fluid layout. It s
3 min read
Bootstrap 4 Fixed Layout
Bootstrap is a free and open-source tool collection for creating responsive websites and web applications. This is the most popular HTML, CSS, and JavaScript framework for developing responsive websites. It solves the cross-browser compatibility issue. The following class sets a maximum width at each responsive breakpoint. Syntax: .containerBootstr
3 min read
Bootstrap 5 Layout Auto-sizing
Bootstrap5 layout Auto-sizing dynamically calculates the size height, width, and positions of the elements can be adjusted automatically. It uses a flexbox utility to vertically center the contents and changes .col to .col-auto so that your columns only take up as much space as needed. Bootstrap5 Layout Auto-sizing Class: col-auto: This class is us
2 min read