I have just started learning bootstrap from https://www.w3schools.com/bootstrap/default.asp website. In the website it is stated that .container-fluid
and .container
classes have to be used for grid system i.e. only when we have rows and columns. But all the code snippets of the "navigation bar" section on that website uses .container-fluid
class even when no rows and columns are used.The navigation bars are created using ul
(unordered list). Following is one example:
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">WebSiteName</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
</ul>
</div>
</nav>
So here is the question:Where can I use .container-fluid
class? Can I apply .container-fluid
to the complete body of my page?