-1

In bootstrap should the container class be of fixed size?

We want it to display the whole width of the desktop and laptop.How can this be tackled.

What if I have custom component how does it stretch to the width of the screen,Should the width be mentioned in percentage?Does the percentage apply to all the elements width? Please suggest.

Ajay Kalkoti
  • 127
  • 1
  • 2
  • 12

1 Answers1

0

In both bootstrap v3 and v4 you could use .container-fluid for a full width container, spanning the entire width of the viewport.

Documentation Bootstrap v4
Documentation Bootstrap v3

akaziga
  • 124
  • 4