Lesson 42: Large Grid in Bootstrap 5

The previous Bootstrap lesson introduced you to examples of grid systems with classes for small and medium-sized devices. In this lesson, we will continue to explore Large Grid.

The previous Bootstrap lesson introduced you to examples of grid systems with classes for small and medium-sized devices. For example, using two divs (columns) and dividing them proportionally at 25%/75% on small devices and 50%/50% on medium-sized devices:

 

. .

However, on larger devices, the design can be better when split at a 33%/66% ratio. Devices are considered large when the screen width is 992 pixels to 1199 pixels or more.

For larger devices, we will use the class .col-lg-*:

. .

 

In Bootstrap, for small devices, you'll use the class with -sm- , for medium-sized devices with -md- , and for large devices, -lg- will be used in the class.

The example below will show a split-screen ratio of 25%/75% on small devices, 50%/50% on medium devices, and 33%/66% on large, extra-large, and very large devices:

 Bootstrap Example 

Large Grid

Adjust the size of your browser window to see the change.

 Khởi nguồn từ một trang web cung cấp kiến thức về mạng, server, các thiết bị mạng, thủ thuật máy tính. Hiện nay, TipsMake.com.com đã trở thành mạng xã hội về khoa học công nghệ, mở rộng nội dung để đáp ứng nhu cầu của các thành viên về nhiều lĩnh vực công nghệ hơn như điện thoại, thiết bị thông minh, điện tử, bảo mật máy tính,. Chúng tôi mong muốn các thành viên của mình luôn nắm bắt được những thông tin, kiến thức, xu hướng công nghệ mới nhất, cũng như gỡ rối những vấn đề công nghệ các thành viên gặp phải khi sử dụng máy tính, điện thoại, các thiết bị điện tử thông dụng khác. 

 

For large devices only

In the example below, we only use the class .col-lg-6(without .col-md-*and .col-sm-*). This means that large, very large, and extra-large devices will be split 50%/50%. However, on medium, small, and extra-small devices, it will stack vertically at 100% width.

For example:

 Bootstrap Example 

Resize your browser window to see the change.

 Khởi nguồn từ một trang web cung cấp kiến thức về mạng, server, các thiết bị mạng, thủ thuật máy tính. Hiện nay, TipsMake.com.com đã trở thành mạng xã hội về khoa học công nghệ, mở rộng nội dung để đáp ứng nhu cầu của các thành viên về nhiều lĩnh vực công nghệ hơn như điện thoại, thiết bị thông minh, điện tử, bảo mật máy tính,. Chúng tôi mong muốn các thành viên của mình luôn nắm bắt được những thông tin, kiến thức, xu hướng công nghệ mới nhất, cũng như gỡ rối những vấn đề công nghệ các thành viên gặp phải khi sử dụng máy tính, điện thoại, các thiết bị điện tử thông dụng khác. Các bạn có thể trở thành một phần của TipsMake.com.com bằng cách gửi bài viết, trải nghiệm công nghệ của mình về cho đội ngũ quản lý nội dung của mạng xã hội thông qua địa chỉ email hoặc đăng ký tài khoản và đăng bài trực tiếp trên TipsMake.com.com. 

 

Automatic column layout

Bootstrap 5 provides an easy way to create columns with the same width across all devices. Essentially, you just remove the number in the `col` element .col-lg-*and use only the class .col-lg on the specific number of columns. Bootstrap will determine the number of columns present, and they will all have the same width.

If the screen size is smaller than 992px, the columns will accumulate horizontally:

 Bootstrap Example 

Automatic responsive layout column

 1 of 2 2 of 2 
1 of 4 2 of 4 3 of 4 4 of 4

You do the same as above with the classes for widescreen and ultrawide displays.

Above are some illustrative examples of large grid systems for large screens. Hopefully, this article is helpful to you.

Related posts
  • How to customize Bootstrap with Sass

    bootstrap is a fantastic css framework that can help you create stylish and polished websites. some programmers and development teams find that writing code in bootstrap is easier to edit than regular css.
  • A compilation of exercises on Bootstrap 5.

    you can test your bootstrap 5 skills with the exercises divided into sections below. solve the exercises by filling in the missing code. you will receive 1 point for each correct answer.
  • Answering frequently asked questions about Bootstrap

    bootstrap is a popular web and application development tool. to help you understand it better, tipsmake.com will compile and answer frequently asked questions about bootstrap.
  • Lesson 23: Modals in Bootstrap 5

    modals in bootstrap 5 are elements that display a popup window at the top of the current page. below is how to create a dialog box or popup using bootstrap 5.
Other Program articles
  • Lesson 41: Grid Medium in Bootstrap 5

    Ở bài học bootstrap 5 trước, bạn đã biết cách tạo grid với các class cho thiết bị màn hình nhỏ. thế nhưng trên thiết bị trung bình có thiết kế tốt hơn sẽ thường được chia theo 50%/50%.
  • Lesson 40: Small Grid in Bootstrap 5

    tiếp tục bài học về grid trong bootstrap 5, chúng ta sẽ tìm hiểu cách làm lưới grid nhỏ đơn giản nhất. về cơ bản, cách tạo grid nhỏ bằng bootstrap 5 không khó.
  • Lesson 39: Ultra-Small Grid Styles in Bootstrap 5

    Ở những bài học bootstrap 5 trước, chúng ta đã tìm hiểu về những kiểu hệ thống lưới grid cơ bản. Ở bài này, hãy cùng download.vn đi sâu hơn vào những kiểu grid cực nhỏ nhé!
  • Lesson 38: Grid Systems from Stacked to Horizontal in Bootstrap 5

    hệ thống grid trong bootstrap 5 khá đa dạng. Ở bài học này, chúng ta sẽ tập trung vào hai cách sắp xếp grid thông dụng nhất nhé!
  • Lesson 37: Form Validation in Bootstrap 5

    form validation hay xác thực biểu mẫu cung cấp phản hồi giá trị có người dùng. Ở bài học cách dùng bootstrap này, hãy cùng nhau tìm hiểu cách thêm validation vào form trong bootstrap 5 như thế nào nhé!
  • Lesson 36: Form Floating Label in Bootstrap 5

    floating labels là phần tử cho bạn cách tạo những nhãn biểu mẫu đơn giản, nổi lên trên các trường nhập. dưới đây là cách tạo floating label trong bootstrap 5.
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup