I want to know that how we know that where to use container or container fluid and also what to do or what to avoid while using container & container fluid ?
need a clear clarity on diiference between container anf container fluid
I want to know that how we know that where to use container or container fluid and also what to do or what to avoid while using container & container fluid ?
need a clear clarity on diiference between container anf container fluid
2
Answers
container
sets a fixedmax-width
at each responsive breakpoint, whilecontainer-fluid
sets the width to 100% across all breakpoints, spanning the entire screen viewport.Read more on this here: https://getbootstrap.com/docs/5.0/layout/containers/#:~:text=Bootstrap%20comes%20with%20three%20different,100%25%20until%20the%20specified%20breakpoint
To use the .container or .container-fluid depends on the layout you want to achieve.
.container:
.container-fluid:
For more detail: https://www.geeksforgeeks.org/what-is-the-difference-between-container-and-container-fluid-in-bootstrap-5/