Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
http://stackoverflow.com/questions//container-fluid-vs-container
This is the answer ... check it out
.container class has fixed width for all the screen sizes like mobile, tablet and desktop but .container-fluid class has full width and it is responsive too.
When you give Container in div class the frame size will be fixed for all screen.
and if you give container_fluid in div class frame size will take the size of screen pannel
container class represents fixed width according to screen viewed, container-fluid on the other hand , will constantly resize as you resize your browser width.
<div class="container"> it will bring your container to the center of your viewport
where as
<div class="container-fluid"> streaches the container to the full width of the viewport
.container is more oe less like achieving reponsive view with media query. The viewport width remains fixed for specific screen sizes whereas .container-fluid the width of the viewport keeps on changing even with a slightest change in the screen / browser size.
The difference between container and container-fluid comes from these lines of CSS:
@media (min-width: 568px) { .container { width: 550px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1170px; } }Depending on the width of the viewport that the webpage is being viewed on, the container class gives its div a specific fixed width. These lines don't exist in any form for container-fluid, so its width changes every time the viewport width changes.
So for example, say your browser window is 1000px wide. As it's greater than the min-width of 992px, your .container element will have a width of 970px. You then slowly widen your browser window. The width of your .container won't change until you get to 1200px, at which it will jump to 1170px wide and stay that way for any larger browser widths.
Your .container-fluid element, on the other hand, will constantly resize as you make even the smallest changes to your browser width.
Container class is to make website or an element fixed widith.
Container-fluid class makes your website or an element 100% wide in a browser.
yes, <div class="container-fluid"> is% width of your row.
and <div class-"container"> is responsive width of row. like we can say we use in html ,css .center class for width:% on all website. <div class="container"> works that.
you can search bootstarp on google ..you will find all informations with example.
Container fluid cover the whole width of the screen while container cover the maximum 1320 px