Welcome to Web Hosting Forum - Net Hosting Talk

Register now and be part of our community! When you register with the Net Hosting Talk you can join in with topics, start new topics, and generally be a part of the first level of our community. It's also quick and totally free, so what are you waiting for?

Container in bootstrap

littleton

Newbie
Messages
7
Reaction score
0
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
40
Reaction score
3
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

Top