July 30, 2023

Bootstrap Column System Explained

Bootstrap 5 is a popular framework for creating responsive web layouts. It uses a grid system to organize content into rows and columns, which can adapt to different screen sizes and devices.

I design websites for a living, and of course, wordpress if my favorite content management system (for a number of reasons). But wordpress can be a challenge, especially when you are doing search engine optimization on pages for google.

Page speed is a factor that can give you an advantage so using a fast, lightweight theme for wordpress is important. I use Niche Lightning and I also design other themes.

Bootstrap can be helpful because it makes theme develop fast and easy.

What are the Classes that Define Column Width in Bootstrap?

The grid system has six classes that define the width of the columns at different breakpoints. These are:

  • .col- for extra small devices (screen width less than 576px)
  • .col-sm- for small devices (screen width equal to or greater than 576px)
  • .col-md- for medium devices (screen width equal to or greater than 768px)
  • .col-lg- for large devices (screen width equal to or greater than 992px)
  • .col-xl- for extra large devices (screen width equal to or greater than 1200px)
  • .col-xxl- for extra extra large devices (screen width equal to or greater than 1400px)
Bootstrap Columns Reference

Each class can be followed by a number from 1 to 12, indicating how many template columns the element should span.

For example, .col-md-6 means the element will take up half of the available width on medium devices and above.

Bootstrap Columns Example

If no number is specified, the element will take up equal width as its siblings.

For example, .col-lg means the element will have the same width as other elements with the same class on large devices and above.

The grid system also provides various utilities for aligning and spacing the columns, such as flexbox alignment, gutter classes, offset classes, and order classes.

These can be used to create complex and flexible layouts that suit your needs.

More Details About the Bootstrap Column System

For more details and examples on how to use the Bootstrap 5 grid system, you can check out these resources:

Columns · Bootstrap v5.0

Grid system · Bootstrap v5.0

I hope this helps you understand the Bootstrap 5 col dimensions better.

If you have any questions or feedback, feel free to let me know.

Niche Money
ABOUT THE AUTHOR
Affiliate marketer with 25 years marketing online. Founder of NicheMoney.co, NicheLightning.com and a host of other businesses. I help people turn their side hustle into a full time income with SEO, email marketing and video marketing techniques. My hobbies are cooking, reading, blogging and hiking.

Follow my posts on Twitter

Related Posts

How to Implement Responsive Images in WordPress

How to Implement Responsive Images in Wordpress including code snippets and explanation for wordpress functions modifications.

Keep Reading

Comments are closed.


Niche Money

About Dave Halmai:
I am a certified internet marketer who is passionate about technology. Since I was old enough to read a manual, I was connecting wires and programming the VCR. Now I share my advice and experience in the online marketing space. I recommend products and services, and offer help to startups, entrepreneurs and established businesses.

To learn more you can visit my about page or my contact page.
How to Leverage the Power of Blogging, SEO and Paid Ads to Earn $50K / Month or More
I wrote this eBook based on 23+ years experience building businesses online to help friends and family make more money online. I cover 5 ways you can use a blog and a business website to develop a side income or expand your business. I cover everything you need to start and scale your online business.
Niche Money