Web Hosting Forum - Net Hosting Talk

We are a community of individuals and businesses passionate about web hosting. Let's build, learn, and grow together.

Container in bootstrap

littleton

Novice
Member
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
 
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

    Back
    Top