Bootstrap 4 Page Layout

broken image


  1. Bootstrap 4 One Page Layout
  2. Bootstrap 4 Page Layout
  3. Bootstrap 4 Layout Tutorial
  4. Bootstrap 4 Example Page
  5. Bootstrap 4 Web Page Layout
  6. 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.

col

Example


col

col

col

Try it Yourself »

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):

col-4

Example


col-4

col-4

col-4

Try it Yourself »

Three Unequal columns

To create unequal columns, you have to use numbers. The following example will create a 25%/50%/25% split:

col-6

Example


col-3

col-6

col-3


Try it Yourself »

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:

col-6

Example


col

col-6

col


Try it Yourself »

More Equal Columns

2 of 2
2 of 4
4 of 4
2 of 6
4 of 6
6 of 6

Example



1 of 2

2 of 2




1 of 4

2 of 4

3 of 4

4 of 4




1 of 6

2 of 6

3 of 6

4 of 6

5 of 6

6 of 6

Try it Yourself »

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:

2 of 2
2 of 4
4 of 4
2 of 6
4 of 6
6 of 6

Example


1 of 2

2 of 2



1 of 4

2 of 4

3 of 4

4 of 4



1 of 6

2 of 6

3 of 6

4 of 6

5 of 6

6 of 6

Try it Yourself »

More Unequal Columns

Bootstrap 4 layout tool
2 of 2
2 of 4
4 of 4
2 of 4
4 of 4

Example



1 of 2

2 of 2




1 of 4

2 of 4

3 of 4

4 of 4




1 of 4

2 of 4

3 of 4

4 of 4

Try it Yourself »

Equal Height

If one of the column is taller than the other (due to text or CSS height), the rest will follow:

Lorem ipsum dolor sit amet, cibo sensibus interesset no sit. Et dolor possim volutpat qui. No malis tollit iriure eam, et vel tale zril blandit, rebum vidisse nostrum qui eu. No nostrud dolorem legendos mea, ea eum mucius oporteat platonem.Eam an case scribentur, ei clita causae cum, alia debet eu vel.
col

Example


Lorem ipsum...

col

col

Try it Yourself »

Nested Columns

col-8
col-6

The following example shows how to create a two column layout, with another two columns inside one of the columns:

Example



.col-8

.col-6

.col-6



.col-4

Try it Yourself »

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

col-sm-3
col-sm

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


col-sm-9

col-sm-3



col-sm

col-sm

col-sm

Bootstrap 4 Page Layout

Try it Yourself »

Mix and Match

col-6 col-sm-3
col-5 col-lg-4

Bootstrap 4 Layout Tutorial

col-sm-9 col-md-6 col-lg-8

Bootstrap 4 Example Page

Example



col-6 col-sm-9

col-6 col-sm-3




col-7 col-lg-8

col-5 col-lg-4




col-sm-3 col-md-6 col-lg-4

col-sm-9 col-md-6 col-lg-8

Try it Yourself »

No Gutters

Add the .no-gutters class to the .row container to remove gutters (extra space):

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Bootstrap 4 Web Page Layout

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.

Bootstrap 4 Layout Builder

Example

Try it Yourself »





broken image