Container in bootstrap

Whether you're a budding designer looking for some tips or a HTML guru looking to advise, the Website Design & Graphics forums are the perfect place for you. Want your site reviewed? Post it here for our members and moderators to critique.
Post Reply
littleton
Newbie
Posts: 6
Joined: Sat Sep 30, 2017 8:35 am

Thu Apr 19, 2018 9:37 pm

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


User avatar
edwin
Junior Member
Posts: 18
Joined: Thu Sep 28, 2017 6:17 pm

Thu Apr 19, 2018 9:46 pm

it depends  :)

Code: Select all

<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?
littleton
Newbie
Posts: 6
Joined: Sat Sep 30, 2017 8:35 am

Thu Apr 19, 2018 9:49 pm

Ok thank you @"edwin" I understand better
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests