Difference between .container class and .container-fluid class? [Resolved]

Posted by Amatya under Bootstrap on 4/24/2017 | Points: 10 | Views : 667 | Status : [Member] | Replies : 2
Difference between .container class and .container-fluid class? When to use them please Explain. Iam new to Bootstrap just started learning

Thanks

Feel free to share informations.
mail Id ' adityagupta200@gmail.com
Thanks



Responses

Posted by: Amatya on: 5/3/2017 [Member] Silver | Points: 25

Up
0
Down
So while coding we should always use '.container-fluid class'?


Feel free to share informations.
mail Id ' adityagupta200@gmail.com
Thanks

Amatya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jahnvi on: 3/8/2019 [Member] Starter | Points: 25

Up
0
Down
(1).The .container class provides a responsive fixed width container
you can try the below .container example:
<div class="container">
<h1>My First Bootstrap Page</h1>
<p>This is some text.</p>
</div>

(2).The .container-fluid class provides a full width container, spanning the entire width of the viewport
you can try the below .container example :
<div class="container-fluid">
<h1>My First Bootstrap Page</h1>
<p>This is some text.</p>
</div>
so, you can try the above two examples and see the difference between .container class and .container-fluid class.


Amatya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response