Currently working on a responsive template using Bootstrap and aiming to create a design similar to https://i.sstatic.net/9jNOQ.png
I noticed that the background can be set with .container-fluid
, but the content is aligned within a container
. How can this effect be achieved? Here is my current structure:
<div class="services">
<div class="container-fluid">
<div class="row">
<div class="col-12 col-md-4 services-black">
<h1>SEO Optimized</h1>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make
</p>
</div>
<div class="col-12 col-md-4 services-red">
<h1>Responsive</h1>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make
</p>
</div>
<div class="col-12 col-md-4 services-green">
<h1>Cloud Services</h1>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make
</p>
</div>
</div>
</div>
</div>
As of now, the text extends to the full width of the container. Should I incorporate a nested-container like so?
<div class="container-fluid">
<div class="container">
..
</div>
</div>
or is there a better approach to achieve this layout?