What is the difference between 'container' and 'container-fluid' classes in Bootstrap?

  • 'container' is fixed-width, 'container-fluid' is full-width
  • 'container' is full-width, 'container-fluid' is fixed-width
  • 'container' has a transparent background, 'container-fluid' has a colored background
  • 'container' is for text-only, 'container-fluid' is for images
The correct option is 'container' is fixed-width, 'container-fluid' is full-width. The 'container' class provides a fixed-width container, while 'container-fluid' spans the entire width of the viewport.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *