- Bootstrap 4 One Page Layout
- Bootstrap 4 Page Layout
- Bootstrap 4 Layout Tutorial
- Bootstrap 4 Example Page
- Bootstrap 4 Web Page Layout
- Bootstrap 4 Layout Builder
Blog Page Layout Bootstrap 3 Bootstrap 4. A blog site layout structure to help you quickly build the grid and components of a common blog site. Sitemap Layout Bootstrap 3. HTML sitemaps and alphabetical indexes help website users and search engines like Google understand your site structure. Site maps are also helpful for site creators to see. Free Our Team Page Design Code in Bootstrap 4 You can see here how top companies are introducing employees on their website and shows Meet Our Team, Our Team, My expert Team section or page.
In this tutorial you will learn how to create responsive websites with Bootstrap framework.
What is Responsive Web Design
Responsive web design is a process of designing and building websites to provide better accessibility and optimal viewing experience to the user by optimizing it for different devices.
With the growing trend of smart phones and tablets, it has become almost unavoidable to ignore the optimization of sites for mobile devices. Responsive web design is a preferable alternative and an efficient way to target a wide range of devices with much less efforts.
Responsive layouts automatically adjust and adapts to any device screen size, whether it is a desktop, a laptop, a tablet, or a mobile phone. See the following Illustration.
Creating Responsive Layout with Bootstrap
With the Bootstrap 4 powerful mobile first flexbox grid system creating the responsive and mobile friendly websites and applications has become much easier.
Bootstrap 4 is responsive and mobile friendly from the start. Its five tier grid classes provides better control over the layout as well as how it will be rendered on different types of devices like mobile phones, tablets, laptops and desktops, large screen devices, and so on.
Bootstrap 4 One Page Layout
The following example will create a responsive layout that is rendered as 4 column layout in extra-large devices (viewport ≥ 1200px), and 3 column layout in large devices (992px ≤ viewport < 1200px), whereas 2 column layout in medium devices (768px ≤ viewport < 992px), and 1 column layout in small and extra-small devices (viewport < 768px). Let's see how this works:
Tip: Open the output of this example in new blank window (click the link inside the CodeLab editor) and resize the screen you will see the orientation of content boxes changes when viewport width crossing or approaching the certain limit (i.e. breakpoints).
Below we have collected some examples of Bootstrap 4 grid layouts.
Three Equal Columns
Use the .col
class on a specified number of elements and Bootstrap will recognize how many elements there are (and create equal-width columns). In the example below, we use three col elements, which gets a width of 33.33% each.
Example
Three Equal Columns Using Numbers
You can also use numbers to control the column width. Just make sure that the sum adds up to 12 or fewer (it is not required that you use all 12 available columns):
Example
Three Unequal columns
To create unequal columns, you have to use numbers. The following example will create a 25%/50%/25% split:
Example
Setting One Column Width
However, it is enough to only set the width of one column, and have the sibling columns automatically resize around it. The following example will create a 25%/50%/25% split:
Example
More Equal Columns
Example
Row Cols
You can also control how many columns that should appear next to each other (regardless of how many cols), with the .row-cols-*
classes:
Example
More Unequal Columns
Example
Equal Height
If one of the column is taller than the other (due to text or CSS height), the rest will follow:
Example
Nested Columns
col-8The following example shows how to create a two column layout, with another two columns inside one of the columns:
Example
.col-8
Responsive Classes
The Bootstrap 4 grid system has five classes:
.col-
(extra small devices - screen width less than 576px).col-sm-
(small devices - screen width equal to or greater than 576px).col-md-
(medium devices - screen width equal to or greater than 768px).col-lg-
(large devices - screen width equal to or greater than 992px).col-xl-
(xlarge devices - screen width equal to or greater than 1200px)
The classes above can be combined to create more dynamic and flexible layouts.
Tip: Each class scales up, so if you wish to set the same widths for sm
and md
, you only need to specify sm
.
Stacked to Horizontal
The following example shows how to create a column layout that starts out stacked on extra small devices, before becoming horizontal on larger devices (sm, md, lg and xl):
Example
Bootstrap 4 Page Layout
Try it Yourself »Mix and Match
Bootstrap 4 Layout Tutorial
Bootstrap 4 Example Page
Example
No Gutters
Add the .no-gutters
class to the .row
container to remove gutters (extra space):
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.