[ad_1]
https://i.ytimg.com/vi/lisV_w1ChDk/hqdefault.jpg
Welcome Developers, we will see Bootstrap 4 Tutorial in Hindi Part 4: Bootstrap 4 GRID SYSTEM in Hindi. The Grid system in Bootstrap 4. Bootstrap 4 Grid System
Bootstrap’s grid system allows up to 12 columns across the page.
If you do not want to use all 12 column individually, you can group the columns together to create wider columns.
Bootstrap’s grid system is responsive, and the columns will re-arrange depending on the screen size: On a big screen it might look better with the content organized in three columns, but on a small screen it would be better if the content items were stacked on top of each other.
Grid 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.
Grid System Rules
Some Bootstrap 4 grid system rules:
Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding
Use rows to create horizontal groups of columns
Content should be placed within columns, and only columns may be immediate children of rows
Predefined classes like .row and .col-sm-4 are available for quickly making grid layouts
Columns create gutters (gaps between column content) via padding. That padding is offset in rows for the first and last column via negative margin on .rows
Grid columns are created by specifying the number of 12 available columns you wish to span. For example, three equal columns would use three .col-sm-4
Column widths are in percentage, so they are always fluid and sized relative to their parent element
The biggest difference between Bootstrap 3 and Bootstrap 4 is that Bootstrap 4 now uses flexbox, instead of floats. One big advantage with flexbox is that grid columns without a specified width will automatically layout as equal width columns. Example: Three elements with .col-sm will each automatically be 33.33% wide from the small breakpoint and up. Tip: If you want to learn more about Flexbox, you can read our CSS Flexbox Tutorial
if you like this video plz LIKE SHARE and SUBSCRIBE my thapatechnical channel 🙂
Original source
24 responses to “Bootstrap 4 Tutorial in Hindi Part 4: Bootstrap 4 GRID SYSTEM Explained in Hindi”
Or should I use like this col lg 4 md 4 sm 4 like this ?
How many grid classes should I use if I want to make web page that will work on desktops and mobile screen please make video in more details and examples.
WhatsApp no 9453334692
Why you use all five classes at ones instead of only one class at a time?
Sir humi class likhte vkt Kya sub class Kon mantion krna hoga like…me,sm,lg..etc..ya pher srif ak class ka use kr k he all dives friendly bna skte hai…like only md ka use kr k..
Please add me in bootstrap whatsapp group 7907189401 and
9834122529
8527112976 whatsapp
thanks for watching video
7020084906
8986354363
sri ram
7507564671 please add me in your group
9410495368 please add me sir.
Nice teaching and voice quality keep it up
7974163595 please add
8983165476
Kya explanation h sir man gye gr8.
thanks .
9429702794 Add Me
How to create gap between two columns
03110272770
9503662213 add me in group
+9779815981015
8019287194 add my no to group bai
Awsome bro pls add me in group 7814807022