Container in bootstrap

Welcome to our community

Be apart of something great, join today!

littleton

Newbie
Messages
8
Reaction score
0
Points
1
Hello,

My question is simple: 

For bootstrap there is a container per page for example one for the header, one for the footer another for the main page ... or only one for the entire site? 

thank you in advance for your response
 

edwin

Moderator
Messages
42
Reaction score
3
Points
8
it depends  :)
Code:
<header>
	<div class="container"></div>
</header>
<main>
	<div class="container"></div>
</main>
<footer>
	<div class="container"></div>
</footer>


<div class="container">
	<header></header>
	<main></main>
	<footer></footer>
</div>

The first part of code will make that you can apply a different background to header / main / footer (and that, from one part). In the second case, you will not be able. Do you need to have a different background?
 
  • Advertisement
  • Advertisement

    Top